HIVE-29662: Cannot execute a script with Beeline's -f <script> - #6691
HIVE-29662: Cannot execute a script with Beeline's -f <script>#6691thomasrebele wants to merge 1 commit into
Conversation
|
ayushtkn
left a comment
There was a problem hiding this comment.
LGTM
Good to get blessings from @abstractdog as well, before we push this
|
I'm assuming that the problem I reported in HIVE-28992 until 3.30.4 is fixed somewhere between 3.30.4 and 3.30.16 |
|
Checked the before and after scenerio, |
|
@abstractdog, I mentioned in this comment that I could not observe the problem described in HIVE-28992 for any of the versions that I've tested. I guess it depends on the operating system. To be sure that we're talking about the same thing: does HIVE-28992 refer to the interactive prompt? |
yeah, I meant the interactive prompt, I'll retry with jline 3.25.0, 3.25.1, 3.30.16 soon to see |
|
Thank you! The script execution with thew new JLine version has some other problems as well. There are some spurious characters in the output (See |
okay, I'm fine with the follow-up this is crucial, before that, beeline was started successfully when I removed jline, because it was present from other paths: so, after removing those, I found that all these versions were okay: when I upgraded to Jline3, my environment was slightly different, but I cannot assume now that something has actually got broken between I would be happy if someone can still reproduce and document under what circumstances the weird prompt |
abstractdog
left a comment
There was a problem hiding this comment.
LGTM, assuming follow-ups
|
I've created ticket HIVE-29814 as a follow-up. |





What changes were proposed in this pull request?
Update jline to 3.30.16, which includes the fix for HIVE-29662: Make Beeline's
-f <script>CLI actually execute the script.Why are the changes needed?
JLine had some bugs which broke Beeline's
-f <script>feature.Does this PR introduce any user-facing change?
No
How was this patch tested?
Created a file
script.sqlcontaining some commands:Built the PR and executed Beeline with
./beeline -u jdbc:hive2://localhost:10000 -n trebele --verbose=true -f /tmp/script.sql. The script was executed as expected.Interactive mode works as well. The prompt line starts with
0: jdbc:hive2://localhost:10000>. I did not observe the problem described in HIVE-28992.