[ https://issues.apache.org/jira/browse/HIVE-4568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13757495#comment-13757495 ]
Hive QA commented on HIVE-4568: ------------------------------- {color:red}Overall{color}: -1 at least one tests failed Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12601281/HIVE-4568.4.patch {color:red}ERROR:{color} -1 due to 2 failed/errored test(s), 2910 tests executed *Failed tests:* {noformat} org.apache.hcatalog.mapreduce.TestHCatExternalDynamicPartitioned.testHCatDynamicPartitionedTable org.apache.hive.beeline.src.test.TestBeeLineWithArgs.testHiveVarSubstitution {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/602/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/602/console Messages: {noformat} Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests failed with: TestsFailedException: 2 tests failed {noformat} This message is automatically generated. > Beeline needs to support resolving variables > -------------------------------------------- > > Key: HIVE-4568 > URL: https://issues.apache.org/jira/browse/HIVE-4568 > Project: Hive > Issue Type: Improvement > Affects Versions: 0.10.0 > Reporter: Xuefu Zhang > Assignee: Xuefu Zhang > Fix For: 0.12.0 > > Attachments: HIVE-4568-1.patch, HIVE-4568-2.patch, HIVE-4568.3.patch, > HIVE-4568.4.patch, HIVE-4568.patch > > > Previous Hive CLI allows user to specify hive variables at the command line > using option "--hivevar". In user's script, reference to a hive variable will > be substituted with the value of the variable. In such way, user can > parameterize his/her script and invoke the script with different hive > variable values. The following script is one usage: > {code} > hive --hivevar > INPUT=/user/jenkins/oozie.1371538916178/examples/input-data/table > --hivevar > OUTPUT=/user/jenkins/oozie.1371538916178/examples/output-data/hive > -f script.q > {code} > script.q makes use of hive variables: > {code} > CREATE EXTERNAL TABLE test (a INT) STORED AS TEXTFILE LOCATION '${INPUT}'; > INSERT OVERWRITE DIRECTORY '${OUTPUT}' SELECT * FROM test; > {code} > However, after upgrade to hiveserver2 and beeline, this functionality is > missing. Beeline doesn't take --hivevar option, and any hive variable isn't > passed to server so it cannot be used for substitution. > This JIRA is to address this issue, providing a backward compatible behavior > at Beeline. -- 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: http://www.atlassian.com/software/jira