Ashish Kumar Singh created HIVE-7340:
----------------------------------------

             Summary: Beeline fails to read a query with comments correctly. 
                 Key: HIVE-7340
                 URL: https://issues.apache.org/jira/browse/HIVE-7340
             Project: Hive
          Issue Type: Bug
            Reporter: Ashish Kumar Singh
            Assignee: Ashish Kumar Singh


Comment in the beginning of line works:
0: jdbc:hive2://localhost:10000> select             
. . . . . . . . . . . . . . . .> -- comment
. . . . . . . . . . . . . . . .> * from store
. . . . . . . . . . . . . . . .> limit 1;

but, having comments not in the beginning ignores rest of the query. So, limit 
1 is ignored here.
0: jdbc:hive2://localhost:10000> select 
. . . . . . . . . . . . . . . .> * from store -- comment
. . . . . . . . . . . . . . . .> limit 1;

However, this is fine with Hive CLI.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to