QuestionQ222

VerifiedData Modelling

A Delta Lake table that stores metadata for user 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 is a good candidate for partitioning the Delta table?

Explanation

A DATE column generally has manageable cardinality and supports partition pruning for common date-range queries. Partitioning by a timestamp, identifier, or geographic coordinate can create too many small partitions because those values tend to be much more granular or high-cardinality.

Community Discussion

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