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

[Feature] Recursive Queries #51573

Open
rchui opened this issue Oct 1, 2024 · 4 comments
Open

[Feature] Recursive Queries #51573

rchui opened this issue Oct 1, 2024 · 4 comments

Comments

@rchui
Copy link

rchui commented Oct 1, 2024

Feature request

Is your feature request related to a problem? Please describe.
There are many use cases in which tables are self referential and the only way to evaluate the contents of the table is to iteratively recurse through the table. This is only possible in SQL with a recursive SQL statement otherwise you must resort to external processing or acknowledge limitations in SQL implementation. This is a very common batch processing use case for hierarchical which StarRocks should support.

Describe the solution you'd like
Support the following SQL syntax:

WITH RECURSIVE < cte-name > AS (
    ...
)

Describe alternatives you've considered
N/A

Additional context
This is supported by almost all major modern databases:

Past issues have been marked as stale and closed:

Has been asked for in the past:

@john-schwegler-vectorsolutions

This is a significant gap in functionality to replace other SQL-based query systems. Needing to traverse a hierarchy (e.g. employee-manager chains) is a relatively common need.

@Peschido
Copy link

+1

2 similar comments
@edfarina2
Copy link

+1

@rkinwork
Copy link

+1

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

No branches or pull requests

5 participants