SpinTheMic
Pro

Interview practice question

Query not using partitions

Data Engineering · BigQuery · Beginner

A query on a date-partitioned table still scans the whole table even though it filters by date. Why?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Filter applied to a different column than the partition column.
  • Functions wrapped around the partition column can prevent pruning.
  • Filters from a subquery or join value aren't always used for pruning.
  • Check bytes estimate and execution details.
  • Rewrite with direct constant filters on the partition column.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics