-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-17819][SQL] Support default database in connection URIs for Spark Thrift Server #15399
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
|
Hi, @rxin . |
|
Test build #66551 has finished for PR 15399 at commit
|
|
Oops. Sorry. I'll fix soon. |
|
Test build #66555 has finished for PR 15399 at commit
|
|
Retest this please. |
|
Test build #66557 has finished for PR 15399 at commit
|
|
Test build #66560 has finished for PR 15399 at commit
|
|
Hi, @gatorsmile . |
|
Test build #66617 has finished for PR 15399 at commit
|
|
First, I am not familiar with the code in this component. Thus, I am not the right person to review it. Second, when I going over the pending JIRA list, I found many bugs that are reported in Thrift Server. Third, I do not know what is the current strategy for supporting |
|
Thank you for commenting, @gatorsmile . So far, I asked @rxin and you. I'll find another committer more closer this part. |
|
Hi, @liancheng . |
|
Can we add a test case using the jdbc client? |
|
Thank you for your advice, @rxin !! |
|
Or, should I create a new testsuite for this kind of testcases? |
|
Test build #66841 has finished for PR 15399 at commit
|
|
Hi, @rxin . |
|
Hi, @rxin . |
|
Hi, @rxin or @liancheng . |
…necting to thriftserver
|
Test build #67041 has finished for PR 15399 at commit
|
|
Thanks - merging in master. |
|
Can you create a backport for branch-2.0? |
|
Thank you, @rxin ! |
…ark Thrift Server ## What changes were proposed in this pull request? Currently, Spark Thrift Server ignores the default database in URI. This PR supports that like the following. ```sql $ bin/beeline -u jdbc:hive2://localhost:10000 -e "create database testdb" $ bin/beeline -u jdbc:hive2://localhost:10000/testdb -e "create table t(a int)" $ bin/beeline -u jdbc:hive2://localhost:10000/testdb -e "show tables" ... +------------+--------------+--+ | tableName | isTemporary | +------------+--------------+--+ | t | false | +------------+--------------+--+ 1 row selected (0.347 seconds) $ bin/beeline -u jdbc:hive2://localhost:10000 -e "show tables" ... +------------+--------------+--+ | tableName | isTemporary | +------------+--------------+--+ +------------+--------------+--+ No rows selected (0.098 seconds) ``` ## How was this patch tested? Manual. Note: I tried to add a test case for this, but I cannot found a suitable testsuite for this. I'll add the testcase if some advice is given. Author: Dongjoon Hyun <dongjoon@apache.org> Closes apache#15399 from dongjoon-hyun/SPARK-17819.
…ark Thrift Server ## What changes were proposed in this pull request? Currently, Spark Thrift Server ignores the default database in URI. This PR supports that like the following. ```sql $ bin/beeline -u jdbc:hive2://localhost:10000 -e "create database testdb" $ bin/beeline -u jdbc:hive2://localhost:10000/testdb -e "create table t(a int)" $ bin/beeline -u jdbc:hive2://localhost:10000/testdb -e "show tables" ... +------------+--------------+--+ | tableName | isTemporary | +------------+--------------+--+ | t | false | +------------+--------------+--+ 1 row selected (0.347 seconds) $ bin/beeline -u jdbc:hive2://localhost:10000 -e "show tables" ... +------------+--------------+--+ | tableName | isTemporary | +------------+--------------+--+ +------------+--------------+--+ No rows selected (0.098 seconds) ``` ## How was this patch tested? Manual. Note: I tried to add a test case for this, but I cannot found a suitable testsuite for this. I'll add the testcase if some advice is given. Author: Dongjoon Hyun <dongjoon@apache.org> Closes apache#15399 from dongjoon-hyun/SPARK-17819.
What changes were proposed in this pull request?
Currently, Spark Thrift Server ignores the default database in URI. This PR supports that like the following.
How was this patch tested?
Manual.
Note: I tried to add a test case for this, but I cannot found a suitable testsuite for this. I'll add the testcase if some advice is given.