Are CTEs materialized, and what are the performance implications in an analytical context?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: hard
Interview Round: Other
Overview: Asks whether common table expressions are computed once or inlined like subqueries, and how that affects query performance on large analytical workloads. Tests knowledge of engine-specific CTE handling, optimization fences, predicate pushdown, repeated scans and reading execution plans.