mirror of
https://github.com/apache/impala.git
synced 2026-01-01 09:00:42 -05:00
This patch enables the shell to pass query strings as-is to Impala's parser. In order to preserve previous behaviour, we transform multi-line queries before writing them to history. We replace EOL with an obscure ascii character (DLE), and re-apply the transformation when reading it back from history. Change-Id: I021b9c3d50b03df73bea1afd6ce3ec6b413484e0 Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4664 Reviewed-by: Ishaan Joshi <ishaan@cloudera.com> Tested-by: jenkins Conflicts: shell/impala_shell.py
14 lines
233 B
SQL
14 lines
233 B
SQL
-- foobar
|
|
/*this is a comment*/
|
|
SELECT 1+1 -- This comment continues to the end of line
|
|
;
|
|
SELECT 1 /* this is an in-line comment */ + 1;
|
|
SELECT 1+
|
|
/*
|
|
this is a
|
|
multiple-line comment
|
|
*/
|
|
1;
|
|
SELECT /* This comment block
|
|
is OK */ 2;
|