Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CTE (Common Table Expressions) within CTE #484

Closed
maoxingda opened this issue Nov 30, 2023 · 3 comments · Fixed by #494
Closed

CTE (Common Table Expressions) within CTE #484

maoxingda opened this issue Nov 30, 2023 · 3 comments · Fixed by #494
Labels
bug Something isn't working

Comments

@maoxingda
Copy link
Contributor

Hope to support CTE (Common Table Expressions) in subqueries. Thank you.

insert into
    public.tgt_tbl1
(
    id
)
with
    t1 as
    (
        with
            t2 as
            (
                select
                    id
                from
                    public.src_tbl1
            )
        select
            id
        from
            t2
    )
select
    id
from
    t1
;
@maoxingda maoxingda added the enhancement New feature or request label Nov 30, 2023
@maoxingda
Copy link
Contributor Author

#476

@reata
Copy link
Owner

reata commented Dec 3, 2023

This potentially will be solved when we solve #476 and #481. Mark it as duplicate and keep it open for now.

@reata reata added the duplicate This issue or pull request already exists label Dec 3, 2023
@reata
Copy link
Owner

reata commented Dec 9, 2023

#476 (CTE within subquery) is now fixed. But looks like here we have CTE within CTE and they're not handled in a unified way. We still need to fix this issue separately.

@reata reata added bug Something isn't working and removed duplicate This issue or pull request already exists enhancement New feature or request labels Dec 9, 2023
@reata reata changed the title CTE (Common Table Expressions) within subqueries CTE (Common Table Expressions) within CTE Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants