-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-6124] Support jdbc connection properties in OPTIONS part of the query #4859
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
Conversation
|
Can one of the admins verify this patch? |
|
Jenkins, add to whitelist |
|
Test build #28202 has started for PR 4859 at commit
|
|
Test build #28202 has finished for PR 4859 at commit
|
|
Test PASSed. |
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.
We should probably document this behavior somewhere -- I'm not sure if there's a standard place for data sources. If nowhere else, at least add it to the doc of createRelation().
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.
We should add this to the programming guide under JDBC.
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.
|
Test build #29012 has started for PR 4859 at commit
|
|
This LGTM, we'll merge this and later add a jdbc() version. |
|
Test build #29012 has finished for PR 4859 at commit
|
|
Test PASSed. |
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.
Why null as the default instead of an empty properties map?
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.
No particular reason really, both are fine with DriverManagers' getConnection(). I've switched to empty properties map, I guess it is in fact neater than null.
|
One minor comment otherwise LGTM, provided documentation and a programatic interface are added in a follow-up PR. |
|
Test build #29032 has started for PR 4859 at commit
|
|
Test build #29032 has finished for PR 4859 at commit
|
|
Test PASSed. |
|
Thanks! Merged to master and branch-1.3. |
…e query One more thing if this PR is considered to be OK - it might make sense to add extra .jdbc() API's that take Properties to SQLContext. Author: Volodymyr Lyubinets <[email protected]> Closes #4859 from vlyubin/jdbcProperties and squashes the following commits: 7a8cfda [Volodymyr Lyubinets] Support jdbc connection properties in OPTIONS part of the query (cherry picked from commit bfd3ee9) Signed-off-by: Michael Armbrust <[email protected]>
One more thing if this PR is considered to be OK - it might make sense to add extra .jdbc() API's that take Properties to SQLContext.