Problems / Partition Pruning / Editorial
The events table contains ~2,900 rows spanning 2 years, but we only need 1 month:
event_type
In production, tables are often partitioned by date. When the query engine sees a date filter, it can skip entire partitions (files/blocks) without reading them — this is called partition pruning. Even without physical partitioning, a date filter early in the plan reduces the data flowing through subsequent operations.
Solve Partition Pruning yourself →