Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
Impala 2.6.0
-
None
Description
When executing following script on shell, it prints out even the comments.
This is trivial, but it would be cleaner to just print the sql statement and strip off the comments from script.
Also want to point out that striping off the comments is happening, but not consistent. Impala only strips of the comments that come after the sql statement in this case.
test.sql
/*
this is a test
*/
select version();
/*
Another test
*/
impala-shell -f tst.sql Starting Impala Shell without Kerberos authentication Connected to x.y.z:21000 Server version: impalad version 2.7.0-cdh5.10.x RELEASE (build 8a60324f3e31f48f4b50e934740398d5c667cafd) Query: /* this is a test */ select version() Query submitted at: 2017-01-18 13:03:52 (Coordinator: x.y.z:25000) Query progress can be monitored at: http://x.y.z:25000/query_plan?query_id=964039b01d5f633f:8ab253b300000000 +------------------------------------------------------------------------------------------+ | version() | +------------------------------------------------------------------------------------------+ | impalad version 2.7.0-cdh5.10.x RELEASE (build 8a60324f3e31f48f4b50e934740398d5c667cafd) | | Built on Mon Jan 16 18:20:17 PST 2017 | +------------------------------------------------------------------------------------------+