Explain it in 60 seconds
Why pruning fails
Data Engineering · Snowflake · Experienced
What common query patterns stop Snowflake from pruning micro-partitions, and how do you fix them?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Wrapping the filtered column in a function, like DATE(ts) or UPPER(col), can block pruning.
- Filtering on a column that is randomly spread across micro-partitions gives little pruning.
- Joins that filter only on the dimension side don't always prune the fact table.
- Implicit type casts, like comparing a string column to a number, can hurt pruning.
- Fix by filtering on the raw column with ranges, clustering, or adding explicit filters on the fact table.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.