improved odps sql parser support

This commit is contained in:
高铁
2021-06-28 20:58:45 +08:00
parent 92a84e9b71
commit d0379beb1a
8 changed files with 55 additions and 8 deletions
@@ -160,7 +160,9 @@ public class SQLParser {
return ident;
} else if (hash == FnvHash.Constants.DISTRIBUTE
|| hash == FnvHash.Constants.SORT
|| hash == FnvHash.Constants.CLUSTER) {
|| hash == FnvHash.Constants.CLUSTER
|| hash == FnvHash.Constants.ZORDER
) {
Lexer.SavePoint mark = lexer.mark();
lexer.nextToken();
if (lexer.token == Token.BY) {
@@ -217,6 +219,8 @@ public class SQLParser {
case FOR:
case GRANT:
case CHECK:
case LEAVE:
case TRIGGER:
if (dbType == DbType.odps || dbType == DbType.hive) {
String strVal = lexer.stringVal();
lexer.nextToken();