QuestionQ252

VerifiedCost & Performance Optimisation

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

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

longitude < 20 & longitude > -20

Which statement explains how the data will be filtered?

Explanation

Delta Lake uses per-file minimum and maximum statistics stored in the Delta Log to perform data skipping. For a predicate on longitude, it retains only data files whose recorded longitude range could contain values between -20 and 20. Partitioning by date does not itself enable pruning for this longitude-only filter.

Learn more

Community Discussion

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