mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
support clickhouse nested datatype/create table engine, fix #4106
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user