-
Notifications
You must be signed in to change notification settings - Fork 1
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
More advanced table extractor to handle compound queries #107
Conversation
private static void accTables(Select select, Set<Table> tables, Stack<Set<String>> cteAliasScopes) { | ||
if (select instanceof PlainSelect) { | ||
accTables(select.getPlainSelect(), tables, cteAliasScopes); | ||
} else if (select instanceof ParenthesedSelect) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this ParenthesedSelect
a nested select or what?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry the context has left my brain a bit now 😄
I think you're right, and from a practical point of view its a SELECT which gets bound to an alias.
I can't recall if this is both column and table bindings, or just one of those.
d7d114f
to
ffaf13a
Compare
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @crisptrutski and the rest of your teammates on Graphite |
Merge activity
|
This makes things much more useful.
Wasn't as bad as I expected!