mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved odps sql parser support
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user