QuestionQ79

VerifiedCost & Performance Optimisation

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

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

The table is partitioned on the date column. A query runs with this filter:

longitude < 20 & longitude > -20

Which statement explains how the data will be filtered?

Explanation

Delta Lake automatically stores per-data-file statistics, including minimum and maximum column values, and uses them at query time for data skipping. Because longitude is a non-partition column with collected statistics, the Delta Log can prune data files whose longitude ranges cannot satisfy the predicate; it does not use the predicate to select date partitions.

Learn more

Community Discussion

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