[GitHub] spark pull request #15507: [SPARK-17819][SQL][BRANCH-2.0] Support default da...

2016-10-16 Thread dongjoon-hyun
Github user dongjoon-hyun closed the pull request at:

https://github.com/apache/spark/pull/15507


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] spark pull request #15507: [SPARK-17819][SQL][BRANCH-2.0] Support default da...

2016-10-16 Thread dongjoon-hyun
GitHub user dongjoon-hyun opened a pull request:

https://github.com/apache/spark/pull/15507

[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.

```sql
$ bin/beeline -u jdbc:hive2://localhost:1 -e "create database testdb"
$ bin/beeline -u jdbc:hive2://localhost:1/testdb -e "create table t(a 
int)"
$ bin/beeline -u jdbc:hive2://localhost:1/testdb -e "show tables"
...
++--+--+
| tableName  | isTemporary  |
++--+--+
| t  | false|
++--+--+
1 row selected (0.347 seconds)
$ bin/beeline -u jdbc:hive2://localhost:1 -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 https://github.com/dongjoon-hyun/spark SPARK-17819-BACK

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

https://github.com/apache/spark/pull/15507.patch

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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org