QuestionQ49

VerifiedData Modelling

A Delta Lake table that stores metadata about users’ content posts has this schema:

user_id LONG, post_text STRING, post_id STRING, longitude FLOAT, latitude FLOAT, post_time TIMESTAMP, date DATE

Based on this schema, which column would be a suitable candidate for partitioning the Delta table?

Explanation

Static partitioning is most effective for low- or known-cardinality fields such as dates. A date column creates practical daily partitions for pruning, whereas a timestamp and identifier columns generally have high cardinality and can create excessive small partitions.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!