improved odps sql parser support

This commit is contained in:
shaojin.wensj
2023-01-11 21:19:29 +08:00
parent 13f545eeb0
commit 2065c4215d
2 changed files with 2 additions and 2 deletions
@@ -1159,7 +1159,7 @@ public class Lexer {
return;
}
if (isFirstIdentifierChar(first) || first == '{') {
if (isFirstIdentifierChar(first) || (first >= '0' && first <= '9') || first == '{') {
stringVal = null;
mark = pos;
while (ch != ';' && ch != EOI) {
@@ -5245,7 +5245,7 @@ public class SQLExprParser extends SQLParser {
}
} else {
if (lexer.token == Token.EQ) {
if (dbType == DbType.odps) {
if (dbType == DbType.odps && (parent instanceof SQLSetStatement || parent == null)) {
lexer.nextTokenForSet();
} else {
lexer.nextToken();