improved hive sql support, fix #3987

This commit is contained in:
高铁
2020-10-25 17:27:54 +08:00
parent c66dba2ab5
commit 6e17d67084
2 changed files with 46 additions and 1 deletions
@@ -2348,7 +2348,7 @@ public class SQLExprParser extends SQLParser {
}
public SQLOrderBy parseDistributeBy() {
if (lexer.token == Token.DISTRIBUTE) {
if (lexer.token == Token.DISTRIBUTE || lexer.identifierEquals("DISTRIBUTE")) {
SQLOrderBy orderBy = new SQLOrderBy();
lexer.nextToken();