improved clickhouse support, fix #4043

This commit is contained in:
高铁
2020-11-15 10:25:50 +08:00
parent 32492da97c
commit 11d7346380
4 changed files with 20 additions and 2 deletions
@@ -1116,7 +1116,7 @@ public class SQLExprParser extends SQLParser {
}
throw new ParserException("ERROR. " + lexer.info());
case LBRACKET:
if (dbType == DbType.odps) {
if (dbType == DbType.odps || dbType == DbType.clickhouse) {
SQLArrayExpr array = new SQLArrayExpr();
lexer.nextToken();
this.exprList(array.getValues(), array);