Apache Hive - Cannot start a query with a comment
See original GitHub issueVerified this works in hive/beeline (CLI). I am use ALT+X / Execute Query. Highlighting the entire block and using Execute Query (CTRL + ENTER) does not work.
Error while compiling statement: FAILED: ParseException line 2:0 cannot recognize input near 'set' 'hive' '.' in statement
Error while compiling statement: FAILED: ParseException line 2:0 cannot recognize input near 'set' 'hive' '.' in statement
org.apache.hadoop.hive.ql.parse.ParseException:line 2:0 cannot recognize input near 'set' 'hive' '.' in statement
org.apache.hadoop.hive.ql.parse.ParseException:line 2:0 cannot recognize input near 'set' 'hive' '.' in statement
Does not work
--Comment
set hive.auto.convert.join=false;
Works:
set hive.auto.convert.join=false;
--Comment
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Error while running query on HIVE; - Cloudera Community
Solved: HI All, I am unable to run the simple query on HIVE i.e. describe ... FAILED: Execution Error, return code 1 from...
Read more >Comments not working in hive CLI - Stack Overflow
Case is simple Hive accepts comments but not as a single line. If you try: --comment show tables;. or show tables --comment;.
Read more >Comments in select query throwing errors in ODBC Hive Driver
Comments in select query throwing errors in ODBC Hive Driver Sample: select empno from ( SELECT emp.empno FROM ( -- FACILITY SELECT emp....
Read more >Troubleshooting in Athena - AWS Documentation
This error message usually means the partition settings have been corrupted. To resolve this issue, drop the table and create a table with...
Read more >GettingStarted - Apache Software Foundation
logger via the 'set' command does not change logging properties since they are determined at initialization time. Hive also stores query logs on...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No, I didn’t yet reproduce that yet. Don’t have live Hive instance at the moment. Will try on the next week.
Closing. If this problem will appear in 5.1.6 - please reopen.