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

Support limit in CTEExec #24869

Closed
guo-shaoge opened this issue May 24, 2021 · 1 comment · Fixed by #24870
Closed

Support limit in CTEExec #24869

guo-shaoge opened this issue May 24, 2021 · 1 comment · Fixed by #24870

Comments

@guo-shaoge
Copy link
Collaborator

Development Task

User can use limit to easily terminate the recursive CTE. So no need to worry infinite loop. For example:

with recursive cte1(c1) as (select 1 union select c1 + 1 from cte1 limit 5 offset 1) select * from cte1;

@guo-shaoge guo-shaoge added the type/enhancement The issue or PR belongs to an enhancement. label May 24, 2021
@guo-shaoge guo-shaoge added type/new-feature and removed type/enhancement The issue or PR belongs to an enhancement. labels May 24, 2021
@tisonkun
Copy link
Contributor

subtask of #17472

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants