Tianyi Wang has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/10512


Change subject: IMPALA-7012: Fix NPE when parsing unexpected tokens
......................................................................

IMPALA-7012: Fix NPE when parsing unexpected tokens

Currently some token are not added to tokenIdMap in the sql scanner and
an NPE will be thrown if such are parsed as unexpected tokens. This
patch fixes this bug and adds a case to ParserTest.

Change-Id: I9c846fdfb22ba37bfc3b1985b9a044014ab58968
---
M fe/src/main/jflex/sql-scanner.flex
M fe/src/test/java/org/apache/impala/analysis/ParserTest.java
M fe/src/test/java/org/apache/impala/common/FrontendTestBase.java
3 files changed, 28 insertions(+), 21 deletions(-)



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9c846fdfb22ba37bfc3b1985b9a044014ab58968
Gerrit-Change-Number: 10512
Gerrit-PatchSet: 1
Gerrit-Owner: Tianyi Wang <tw...@cloudera.com>

Reply via email to