improved odps parser

This commit is contained in:
高铁
2021-09-20 00:41:41 +08:00
parent 5b8c4901e4
commit 4e3f4de5e1
2 changed files with 2 additions and 2 deletions
@@ -197,7 +197,7 @@ public class SQLParser {
|| lexer.identifierEquals(FnvHash.Constants.ANTI)
|| lexer.identifierEquals(FnvHash.Constants.SEMI)) {
lexer.reset(mark);
break;
return null;
} else {
return strVal;
}
@@ -4735,7 +4735,7 @@ public class SQLStatementParser extends SQLParser {
this.parseStatementList(list, 1, null);
if (tryBest) {
if (lexer.token != Token.EOF) {
throw new ParserException("sql syntax error, no terminated. " + lexer.token);
throw new ParserException("sql syntax error, no terminated. " + lexer.info());
}
}
return list.get(0);