support clickhouse nested datatype/create table engine, fix #4106

This commit is contained in:
高铁
2020-12-30 15:01:52 +08:00
parent c22f0f0bfd
commit 5761dccf90
7 changed files with 123 additions and 0 deletions
@@ -182,6 +182,16 @@ public class SQLCreateTableParser extends SQLDDLParser {
createTable.setPartitioning(partitionClause);
}
if (dbType == DbType.clickhouse) {
if (lexer.identifierEquals(FnvHash.Constants.ENGINE)) {
lexer.nextToken();
accept(Token.EQ);
createTable.setEngine(
this.exprParser.expr()
);
}
}
return createTable;
}