[feature](Nereids) support agg state type in create table (#32171)
this PR introduce a behavior change, syntax of create table with agg_state type is changed.
This commit is contained in:
@ -41,8 +41,8 @@ Create table example:
|
||||
```sql
|
||||
create table a_table(
|
||||
k1 int null,
|
||||
k2 agg_state max_by(int not null,int),
|
||||
k3 agg_state group_concat(string)
|
||||
k2 agg_state<max_by(int not null,int)> generic,
|
||||
k3 agg_state<group_concat(string)> generic
|
||||
)
|
||||
aggregate key (k1)
|
||||
distributed BY hash(k1) buckets 3
|
||||
|
||||
@ -41,8 +41,8 @@ under the License.
|
||||
```sql
|
||||
create table a_table(
|
||||
k1 int null,
|
||||
k2 agg_state max_by(int not null,int),
|
||||
k3 agg_state group_concat(string)
|
||||
k2 agg_state<max_by(int not null,int)> generic,
|
||||
k3 agg_state<group_concat(string)> generic
|
||||
)
|
||||
aggregate key (k1)
|
||||
distributed BY hash(k1) buckets 3
|
||||
|
||||
Reference in New Issue
Block a user