Hive CLI can't handle query files that begin with comments ----------------------------------------------------------
Key: HIVE-1431 URL: https://issues.apache.org/jira/browse/HIVE-1431 Project: Hadoop Hive Issue Type: Bug Components: CLI Reporter: Carl Steinbach Fix For: 0.6.0, 0.7.0 {code} % cat test.q -- This is a comment, followed by a command set -v; -- -- Another comment -- show tables; -- Last comment (master) [ ~/Projects/hive ] % hive < test.q Hive history file=/tmp/carl/hive_job_log_carl_201006231606_1140875653.txt hive> -- This is a comment, followed by a command > set -v; FAILED: Parse Error: line 2:0 cannot recognize input 'set' hive> -- > -- Another comment > -- > show tables; OK rawchunks Time taken: 5.334 seconds hive> -- Last comment > (master) [ ~/Projects/hive ] % {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.