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

bug: Recursive CTE must contain a UNION(ALL) query #16921

Open
1 of 2 tasks
wubx opened this issue Nov 23, 2024 · 0 comments
Open
1 of 2 tasks

bug: Recursive CTE must contain a UNION(ALL) query #16921

wubx opened this issue Nov 23, 2024 · 0 comments
Labels
C-bug Category: something isn't working

Comments

@wubx
Copy link
Member

wubx commented Nov 23, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

Version

main

What's Wrong?

WITH RECURSIVE t(n) as (   select 1    union all    select n+1 from t where n<10 ), cte1(c1) as (   select 'abc' ) select  n, c1  from t,cte1;

error: APIError: ResponseError with 1005: Recursive CTE must contain a UNION(ALL) query

WITH RECURSIVE t(n) as (
  select 1
  union all
  select n+1 from t where n<10
),
cte1 as (
  select number  from numbers(10)
)
select n, cet1.nubmer  from t join cte1 where t.n=cte1.number;

error: APIError: ResponseError with 1005: Recursive CTE must contain a UNION(ALL) query

How to Reproduce?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@wubx wubx added the C-bug Category: something isn't working label Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant