-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/15294/
-----------------------------------------------------------
(Updated Nov. 7, 2013, 1:18 a.m.)
Review request for hive.
Changes
-------
Added link to original JIRA in the bug field.
Bugs: HIVE-5765
https://issues.apache.org/jira/browse/HIVE-5765
Repository: hive-git
Description
-------
When running Beeline with -e option to pass in sql commands, a null pointer
exception is thrown, even though the command completes successfully.
Beeline command execution has some pre-execution logic to get the rest
multi-line command using the consoleReader. However, there is no
console-reader available when beeline is initializing and running the command
passed in -e. Therefore, we would want to skip the multi-line logic, that is
not applicable for commands passed in with -e flag.
Diffs
-----
beeline/src/java/org/apache/hive/beeline/Commands.java 91ee3b3
Diff: https://reviews.apache.org/r/15294/diff/
Testing
-------
Manually tested, and ran TestBeelineWithArgs.
Thanks,
Szehon Ho