Impala Public Jenkins has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/13293 )
Change subject: IMPALA-8497: Fix ArrayIndexOutOfBoundsException for queries that end with '\n' ...................................................................... IMPALA-8497: Fix ArrayIndexOutOfBoundsException for queries that end with '\n' When query ends with '\n', impala would throw ArrayIndexOutOfBoundsException, instead of a syntax error. The bug only affects the queries submitted directly to Impala outside Impala shell. Tests: * Added test cases in ParserTest.java * Ran all front-end tests Change-Id: I3f034b351d0468a77773f6482e27ddef818b34d8 Reviewed-on: http://gerrit.cloudera.org:8080/13293 Reviewed-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com> --- M fe/src/main/cup/sql-parser.cup M fe/src/test/java/org/apache/impala/analysis/ParserTest.java 2 files changed, 47 insertions(+), 1 deletion(-) Approvals: Impala Public Jenkins: Looks good to me, approved; Verified -- 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: merged Gerrit-Change-Id: I3f034b351d0468a77773f6482e27ddef818b34d8 Gerrit-Change-Number: 13293 Gerrit-PatchSet: 8 Gerrit-Owner: wangsheng <sky...@163.com> Gerrit-Reviewer: Austin Nobis <ano...@cloudera.com> Gerrit-Reviewer: Fredy Wijaya <fwij...@cloudera.com> Gerrit-Reviewer: Impala Public Jenkins <impala-public-jenk...@cloudera.com> Gerrit-Reviewer: Quanlong Huang <huangquanl...@gmail.com>