GitHub user dongjoon-hyun opened a pull request:

    [SPARK-17819][SQL][BRANCH-2.0] Support default database in connection URIs 
for Spark 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.
    $ bin/beeline -u jdbc:hive2://localhost:10000 -e "create database testdb"
    $ bin/beeline -u jdbc:hive2://localhost:10000/testdb -e "create table t(a 
    $ 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?
    Pass the Jenkins with a newly added testsuite.

You can merge this pull request into a Git repository by running:

    $ git pull SPARK-17819-BACK

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #15507
commit 43a9d48a70b8400a4692e5f8d2b44686e7f50b4e
Author: Dongjoon Hyun <>
Date:   2016-10-17T03:45:25Z

    [SPARK-17819][SQL] Support default database in connection URIs for Spark 
Thrift Server


If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to