Skip to content

[Feature Request]: Support entity collection for derived tables and query columns #421

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

Open
JackWang032 opened this issue May 8, 2025 · 0 comments
Assignees

Comments

@JackWang032
Copy link
Collaborator

Topic

Support new features on parser

Description

Derived Table Collection

For the following SQL, we can only retrieve two table entities: t1 and users. However, the derived table (subquery) t2 should also be collectible:

SELECT id FROM t1, (select name from users) as t2

Query Field Collection

It should be possible to collect the queried fields id, name, and total from the source table u so that they can be referenced in the outer query:

SELECT xxx FROM (SELECT id, name, (select count(*) as total) FROM users) u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant