hive sql parser support check keyword, fix #4231

This commit is contained in:
高铁
2021-04-18 17:06:27 +08:00
parent 14747b3da9
commit 583d86ef0c
4 changed files with 14 additions and 4 deletions
@@ -1090,7 +1090,7 @@ public class SQLExprParser extends SQLParser {
case LIKE:
case UNION:
case CREATE:
if (dbType == DbType.odps) {
if (dbType == DbType.odps || dbType == DbType.hive) {
sqlExpr = new SQLIdentifierExpr(lexer.stringVal());
lexer.nextToken();
break;