hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xuefu Zhang (JIRA)" <>
Subject [jira] [Updated] (HIVE-5131) JDBC client's hive variables are not passed to HS2
Date Tue, 03 Sep 2013 23:45:54 GMT


Xuefu Zhang updated HIVE-5131:

    Release Note: 
We haven't documented the usage in which hive variables may be specified at hive JDBC url,
which can be used to substitute parameters present in user query. For instance, jdbc:hive2://localhost:10000#D_TBL=dummy_t
specifies a hive variable D_TBL with a value dummy_t. In user query, ${D_TBL} or ${hivevar:D_TBL}
can be used to refer to the value dummy_t. Thus, a DDL, "create table ${D_TBL} (d int);" will
create a table named dummy_t.

The functionality was there for hive embedded mode. This JIRA will make this available for
Hive remote mode as well.
> JDBC client's hive variables are not passed to HS2
> --------------------------------------------------
>                 Key: HIVE-5131
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: JDBC
>    Affects Versions: 0.11.0
>            Reporter: Xuefu Zhang
>            Assignee: Xuefu Zhang
>             Fix For: 0.12.0
>         Attachments: HIVE-5131.1.patch, HIVE-5131.patch, HIVE-5131.patch
> Related to HIVE-2914. However, HIVE-2914 seems addressing Hive CLI only. JDBC clients
suffer the same problem. This was identified in HIVE-4568. I decided it might be better to
separate issue from a different issue.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message