Question 610
A sales table has a billion records, and selective queries still scan most files. The change record shows Add a semantically correct selective WHERE condition to the query. The acceptance test concerns: The table's data is well laid out but a query still performs full scans because no filter was supplied. Which outcome confirms it?
Explanation
Correct Answer
The team used Add a semantically correct selective WHERE condition to the query to fulfill “The table's data is well laid out but a query still performs full scans because no filter was supplied.” Observing The plan shows pruning and returned records satisfy the intended subset confirms the intended effect in the resulting workload.
Incorrect Answers
That observation is a valid indicator for “A query wraps a partition/filter column in a nonpushdown-compatible function” when using Rewrite the predicate to a sargable equivalent while preserving semantics. The scenario instead tests “The table's data is well laid out but a query still performs full scans because no filter was supplied”; the relevant result is The plan shows pruning and returned records satisfy the intended subset.
Scan metrics show a lower percentage of files read would demonstrate the separate action Ensure relevant column statistics and appropriate data layout for pruning, which addresses “A query filters by an indexed or statistically tracked customer/date field.” It does not verify the requirement “The table's data is well laid out but a query still performs full scans because no filter was supplied” following Add a semantically correct selective WHERE condition to the query.
File count and selective scan cost decrease without partition explosion would demonstrate the separate action Use liquid clustering or suitable layout instead of one partition per key, which addresses “A high-cardinality filter benefits from clustering rather than massive Hive partitions.” It does not verify the requirement “The table's data is well laid out but a query still performs full scans because no filter was supplied” following Add a semantically correct selective WHERE condition to the query.