wangsheng has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/13293


Change subject: IMPALA-8497: Fixed ArrayIndexOutOfBoundsException when sql ends 
with line break
......................................................................

IMPALA-8497: Fixed ArrayIndexOutOfBoundsException when sql ends with line break

When sql ends with '\n', impala would throw ArrayIndexOutOfBoundsException, 
instead of Syntax error.
This situation usually occured when sql sumbit by hive jdbc in code, user 
sometimes have their own BI tools,
and may submit sql ends with '\n' to impala server.

Tests:
  * Add test cases in ParserTest.java

Change-Id: I3f034b351d0468a77773f6482e27ddef818b34d8
---
M fe/src/main/cup/sql-parser.cup
M fe/src/test/java/org/apache/impala/analysis/ParserTest.java
2 files changed, 23 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/93/13293/1
--
To view, visit http://gerrit.cloudera.org:8080/13293
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3f034b351d0468a77773f6482e27ddef818b34d8
Gerrit-Change-Number: 13293
Gerrit-PatchSet: 1
Gerrit-Owner: wangsheng <[email protected]>

Reply via email to