Cherry-pick 'ae47eb1' from upstream to fix Nested CTE errors (#3360)
Before this cherry-pick the below query would have errored out
WITH outermost(x) AS (
SELECT 1
UNION (WITH innermost as (SELECT 2)
SELECT * FROM innermost
UNION SELECT 3)
)
SELECT * FROM outermost;
Signed-off-by: NMelanie Plageman <mplageman@pivotal.io>
Showing
想要评论请 注册 或 登录