File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
main/java/com/alibaba/druid/sql/dialect/clickhouse/parser
test/resources/bvt/parser/clickhouse Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 4
4
import com .alibaba .druid .sql .ast .SQLName ;
5
5
import com .alibaba .druid .sql .ast .statement .SQLAlterStatement ;
6
6
import com .alibaba .druid .sql .ast .statement .SQLAlterTableStatement ;
7
+ import com .alibaba .druid .sql .ast .statement .SQLColumnDefinition ;
7
8
import com .alibaba .druid .sql .ast .statement .SQLCreateViewStatement ;
8
9
import com .alibaba .druid .sql .ast .statement .SQLUpdateSetItem ;
9
10
import com .alibaba .druid .sql .ast .statement .SQLWithSubqueryClause ;
@@ -115,4 +116,7 @@ public void parseCreateViewAfterName(SQLCreateViewStatement createView) {
115
116
}
116
117
}
117
118
}
119
+ public void parseCreateViewAtDataType (SQLColumnDefinition column , SQLName expr ) {
120
+ column .setDataType (this .exprParser .parseDataType ());
121
+ }
118
122
}
Original file line number Diff line number Diff line change
1
+ create view test (a uint32) as select a from b
2
+ --------------------
3
+ CREATE VIEW test (
4
+ a uint32
5
+ )
6
+ AS
7
+ SELECT a
8
+ FROM b
9
+ ------------------------------------------------------------------------------------------------------------------------
1
10
select
2
11
/*
3
12
/*
You can’t perform that action at this time.
0 commit comments