[ 
https://issues.apache.org/jira/browse/HIVE-10928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15373356#comment-15373356
 ] 

Vihang Karajgaonkar commented on HIVE-10928:
--------------------------------------------

This seems to be working in the latest beeline from master branch. Can you 
please check again? Please reopen the issue if you think there is something 
which still needs to be fixed.

Session 1:
{noformat}
0: jdbc:hive2://localhost:10000> use default;
No rows affected (0.055 seconds)
0: jdbc:hive2://localhost:10000> show tables;
+----------------+--+
|    tab_name    |
+----------------+--+
| likes          |
| longkeyvalues  |
| names          |
| src2           |
| t1             |
| t2             |
| t3             |
| table_3        |
+----------------+--+
8 rows selected (0.077 seconds)
0: jdbc:hive2://localhost:10000> select * from likes;
+-----------+--------------+--+
| likes.id  | likes.thing  |
+-----------+--------------+--+
| 1         | chocolate    |
| 1         | car          |
| 1         | games        |
| 1         | chess        |
| 2         | cake         |
| 2         | shopping     |
| 5         | cricket      |
| 7         | travel       |
| 3         | hiking       |
+-----------+--------------+--+
9 rows selected (0.219 seconds)
{noformat}


Concurrent Session 2:
{noformat}
0: jdbc:hive2://localhost:10000> use parquet;
No rows affected (0.043 seconds)
0: jdbc:hive2://localhost:10000> show tables;
+-----------+--+
| tab_name  |
+-----------+--+
| test      |
+-----------+--+
1 row selected (0.058 seconds)
0: jdbc:hive2://localhost:10000> select * from test;
+----------+--+
| test.id  |
+----------+--+
| 2000.0   |
+----------+--+
1 row selected (0.538 seconds)
0: jdbc:hive2://localhost:10000>
{noformat}

> Concurrent Beeline Connections can not work on different databases
> ------------------------------------------------------------------
>
>                 Key: HIVE-10928
>                 URL: https://issues.apache.org/jira/browse/HIVE-10928
>             Project: Hive
>          Issue Type: Bug
>          Components: Beeline
>    Affects Versions: 0.14.0
>            Reporter: chirag aggarwal
>
> The concurrent beeline connections are not able to work on different 
> databases. If one connection calls 'use abc', then all the connections start 
> working on database 'abc'.



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

Reply via email to