Cheng Lian created SPARK-3552:
---------------------------------

             Summary: Thrift server doesn't reset current database for each 
connection
                 Key: SPARK-3552
                 URL: https://issues.apache.org/jira/browse/SPARK-3552
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 1.1.0
            Reporter: Cheng Lian


Reproduction steps:

- Start Thrift server
- Connect with beeline
  {code}
./bin/beeline -u jdbc:hive2://localhost:10000/default -n lian
{code}
- Create an empty database and switch to it
  {code}
0: jdbc:hive2://localhost:10000/default> create database test;
0: jdbc:hive2://localhost:10000/default> use test;
{code}
- Exit beeline and reconnect, specify current database to "default"
  {code}
./bin/beeline -u jdbc:hive2://localhost:10000/default -n lian
{code}
- Now {{SHOW TABLES}} returns nothing indicating that the current database is 
still {{test}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to