Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
Impala 2.2, Impala 2.3.0
Description
Shell doesn't handle comments properly while executing the queries. For example,
[impalad:21000] > ----- random comment 1 -----### random comment 2 insert overwrite test2 select * from test1; Query: ----- random comment 1 -----### random comment 2 insert overwrite test2 select * from test1 Fetched 0 row(s) in 3.53s
Stderr for an insert query shows up as "Fetched 0 row(s)" instead of "Inserted 1 row(s)" . This happens because the shell parser doesn't detect this as an insert query due to the presence of comments. We don't strip the comments before sending them to Cmd control, due which the default() method is applied instead of do_insert().