You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WITH
cte1 AS (SELECT a FROM tab1),
cte2 AS (SELECT a FROM cte1)
INSERT OVERWRITE TABLE tab2
SELECT a FROM cte2
This is valid syntax and yet now we treat CTE as exactly the same as subquery, while subquery cannot reference previously defined subquery. We should add support for this.
This is valid syntax and yet now we treat CTE as exactly the same as subquery, while subquery cannot reference previously defined subquery. We should add support for this.
Reference: https://stackoverflow.com/questions/27204824/sql-use-a-reference-of-a-cte-to-another-cte
The text was updated successfully, but these errors were encountered: