hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Szehon Ho" <>
Subject Re: Review Request 16330: HIVE-6045- Beeline hivevars is broken for more than one hivevar
Date Wed, 18 Dec 2013 00:39:08 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated Dec. 18, 2013, 12:39 a.m.)

Review request for hive.


Today the hive-var is broken because of the following:

1. Beeline constructs jdbc url fragment of hive-var with '&' delimiter
2. JDBC uses ';' delimiter to parse this hive-var fragment.

Original patch had changed JDBC parsing regex (part 2) to expect '&'.  But some test cases
were manually constructing JDBC url's with ';' as delimiter and checking the parsing works
on that.  One option is the change the test, which should be fine for JDBC URL backward-compatibility
as this is new feature for 0.13.

But still I decided to minimize the impact and choose an alternate fix (part 1), so that beeline
constructs URL fragment with ';' delimiter.

Bugs: HIVE-6045

Repository: hive-git


The implementation appends hivevars to the jdbc url in the form "var1=val1&var2=val2$var3-val3"

but the regex used to parse this is expecting the delimiter to be ";".  Changed the regex
to fit the hivevar format.

Diffs (updated)

  jdbc/src/java/org/apache/hive/jdbc/ 913dc46 



Looks like TestBeelineWithArgs is no longer being run, and there are a lot of failures there
due to other changes even without this change.  Probably we need to move that test, and see
if we can add a unit test there for this case.


Szehon Ho

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message