Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
Impala 0.7
Description
It is very common for command shells for Oracle or MySQL databases to support both - single-line and /* / multi-line comment notation. 'impala-shell -f blah.sql' currently gives 'unrecognized command' for /* */ comments. It should silently ignore them. (It does
For example, the basic MySQL sample code here: http://downloads.mysql.com/docs/world.sql.zip
immediately gives a bunch of 'unrecognized command' errors due to a mix of - and /* */ comments at the top of the file, regardless of whether the actual SQL command syntax is compatible or not.
Based on the pattern of error messages, it seems like Impala really does ignore whatever is in between the /* / delimiters, so it might just be a case of spurious messages when it actually encounters / and */.