|
15 | 15 | // specific language governing permissions and limitations |
16 | 16 | // under the License. |
17 | 17 |
|
18 | | -suite("test_state_types_only_in_aggregate_table", "nonConcurrent") { |
| 18 | +suite("test_state_types_only_in_aggregate_table") { |
19 | 19 | sql "set enable_agg_state=true" |
20 | 20 |
|
21 | 21 | sql "drop table if exists state_type_dup_hll" |
@@ -54,7 +54,7 @@ suite("test_state_types_only_in_aggregate_table", "nonConcurrent") { |
54 | 54 | distributed by hash(k) buckets 1 |
55 | 55 | properties("replication_num" = "1") |
56 | 56 | """ |
57 | | - exception "type is only supported in aggregate key tables" |
| 57 | + exception "DUP_KEYS table should not specify aggregate type" |
58 | 58 | } |
59 | 59 |
|
60 | 60 | sql "drop table if exists state_type_alter_dup" |
@@ -91,17 +91,18 @@ suite("test_state_types_only_in_aggregate_table", "nonConcurrent") { |
91 | 91 | properties("replication_num" = "1") |
92 | 92 | """ |
93 | 93 |
|
94 | | - setFeConfigTemporary([allow_non_aggregate_table_state_types: true]) { |
95 | | - sql "drop table if exists state_type_compatibility_dup" |
96 | | - sql """ |
97 | | - create table state_type_compatibility_dup ( |
98 | | - k int, |
99 | | - h hll not null, |
100 | | - q quantile_state not null, |
101 | | - a agg_state<sum(int not null)> generic |
102 | | - ) duplicate key(k) |
103 | | - distributed by hash(k) buckets 1 |
104 | | - properties("replication_num" = "1") |
105 | | - """ |
| 94 | + withGlobalLock("allow_non_aggregate_table_state_types") { |
| 95 | + setFeConfigTemporary([allow_non_aggregate_table_state_types: true]) { |
| 96 | + sql "drop table if exists state_type_compatibility_dup" |
| 97 | + sql """ |
| 98 | + create table state_type_compatibility_dup ( |
| 99 | + k int, |
| 100 | + h hll not null, |
| 101 | + q quantile_state not null |
| 102 | + ) duplicate key(k) |
| 103 | + distributed by hash(k) buckets 1 |
| 104 | + properties("replication_num" = "1") |
| 105 | + """ |
| 106 | + } |
106 | 107 | } |
107 | 108 | } |
0 commit comments