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
Added ability to include account value in profiles.yml to specify whi… #4
Conversation
…ch account to use.
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.
thanks the wicked fast turn around on this? my suggestions:
- 2nd pass as query param building logic
- update
CHANGELOG.md
- accept/ignore my docs suggestions
… profiles.yml. Edited readme to reflect this change. Updated CHANGELOG.md.
dbt/adapters/firebolt/connections.py
Outdated
lambda kv: "&" | ||
+ urllib.parse.quote(kv[0]) | ||
+ quote(kv[0]) | ||
+ "=" | ||
+ urllib.parse.quote(kv[1]), | ||
+ quote(kv[1]), | ||
credentials.params.items(), |
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.
this thing looks like it also adds the query string, starting with &
... maybe it could be combined with the url_vars
section? maybe i'm being too picky? @miguel-firebolt, what's the use case for params
anyway??
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.
This code is kind of messy. I'll fool around with it for a few minutes.
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.
Okay, it's done. Testing needs to be done using parameters, though, which I don't know how to do. @miguel-firebolt can you?
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 can't say I know what the use case for params is...
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.
looks good! feel free to ignore/table my suggestion about credentials.params
.
in lieu of integration tests, can you confirm that this works?
I can confirm this works. I tested using two accounts, using both engines on and one engine off at a time, in order to make sure it was always choosing the correct account. |
…ehension in construction of jdbc url.
Took @swanderz suggestion on adding parameters to jdbc url by using dictionary comprehension. |
…ch account to use.