-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Add qualifed projections to schemas & update dataset#select
calls
#373
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.
Thank you! This looks good to me.
ps. @flash-gordon ?
@solnic I'm OK with that. In general, I think we want to do something about caching |
@abrthel please squash commits and I'll merge this in |
acafb76
to
0262df1
Compare
Not really sure what made those checks fail but commits have now been squashed! |
@solnic Hey, is there anything I should be doing to get this merged? As far as I can tell the tests failed before the test suite even ran. |
Yes, please rebase because the suite should pass now. |
Aliased attributes are context based and should default to the defined dataset name when using them in most queries. This fix provides a way to tell attributes they will be used in a context where their configured alias should override the default attribute name. As well this commit addresses: * Fix qualified function attributes Makes function attributes use the new qualified projection * Fix postgres commands /w aliased attributes Postgres commands were not returning tuples with the configured alias names.
0262df1
to
d9f2058
Compare
Clones added
============
- lib/rom/sql/function.rb 2
See the complete overview on Codacy |
@solnic done! 😄 |
Fixes #370
Aliased attributes are context based and should default to the
defined dataset name when using them in most queries.
This fix prevents attributes from being aliased during finalization
and provides a way to tell attributes they will be used in a
context where their configured alias should override the default
attribute name.
(Note: after review and before the pull request is accepted, ping me and I'll squash these commits)