-
Notifications
You must be signed in to change notification settings - Fork 86
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
Find function calls referenced in expression indexes #249
Conversation
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.
Nice! Thanks for tackling this.
spec/lib/parse_spec.rb
Outdated
expect(query.warnings).to eq [] | ||
expect(query.tables).to eq ['test'] | ||
expect(query.ddl_tables).to eq ['test'] | ||
expect(query.call_functions).to eq ['lower'] |
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.
I wonder if its also worth checking filter_columns
here? (just to have that be deterministic, I'm actually not sure if it'd return an empty table with a column name for regular elements, or no columns at all?)
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.
I added filter_columns to the spec and added support for that. Is that what you meant? Maybe it's just my unfamiliarity with pg_query, but I don't quite follow your comment.
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.
Yep, thats what I meant :)
I added a brand new test instead of modifying the existing CREATE
INDEX test; I can merge these if that makes more sense.