Explain approximate aggregates like APPROX_COUNT_DISTINCT, when to use them, and their accuracy trade-offs
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how approximate aggregates such as APPROX_COUNT_DISTINCT work, when they are the right tool, and what they cost in accuracy. Tests understanding of cardinality sketches, the link between sketch memory and error, mergeable roll-ups, and which workloads need exact counts.