-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Enhancement] Do not display type when table comment is empty (#24803)
Fixes #issue Signed-off-by: Astralidea <[email protected]> (cherry picked from commit e770adb) # Conflicts: # fe/fe-core/src/test/java/com/starrocks/analysis/ShowCreateMaterializedViewStmtTest.java # test/sql/test_default_enable_replicated_storage/R/test_enable_mv # test/sql/test_materialized_column/R/test_materialized_column # test/sql/test_random_distribution/R/test_random_distribution
- Loading branch information
1 parent
21999b8
commit 31bf4e2
Showing
6 changed files
with
1,009 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
test/sql/test_default_enable_replicated_storage/R/test_enable_mv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
-- name: test_default_enable_mv | ||
create database test_default_enable_mv; | ||
-- result: | ||
-- !result | ||
use test_default_enable_mv; | ||
-- result: | ||
-- !result | ||
admin set frontend config('enable_replicated_storage_as_default_engine'='true'); | ||
-- result: | ||
-- !result | ||
create table t1(k int, v int not null) distributed by hash(k); | ||
-- result: | ||
-- !result | ||
create materialized view tvd distributed by hash(k) buckets 10 REFRESH ASYNC as select k, sum(v) from t1 group by k; | ||
-- result: | ||
-- !result | ||
show create materialized view tvd; | ||
-- result: | ||
tvd CREATE MATERIALIZED VIEW `tvd` (k, sum(v)) | ||
DISTRIBUTED BY HASH(`k`) BUCKETS 10 | ||
REFRESH ASYNC | ||
PROPERTIES ( | ||
"replication_num" = "3", | ||
"replicated_storage" = "true", | ||
"storage_medium" = "HDD" | ||
) | ||
AS SELECT `t1`.`k`, sum(`t1`.`v`) AS `sum(v)` | ||
FROM `test_default_enable_mv`.`t1` | ||
GROUP BY `t1`.`k`; | ||
-- !result | ||
admin set frontend config('enable_replicated_storage_as_default_engine'='false'); | ||
-- result: | ||
-- !result | ||
create materialized view tvb distributed by hash(k) buckets 10 REFRESH ASYNC as select k, sum(v) from t1 group by k; | ||
-- result: | ||
-- !result | ||
show create materialized view tvb; | ||
-- result: | ||
tvb CREATE MATERIALIZED VIEW `tvb` (k, sum(v)) | ||
DISTRIBUTED BY HASH(`k`) BUCKETS 10 | ||
REFRESH ASYNC | ||
PROPERTIES ( | ||
"replication_num" = "3", | ||
"replicated_storage" = "false", | ||
"storage_medium" = "HDD" | ||
) | ||
AS SELECT `t1`.`k`, sum(`t1`.`v`) AS `sum(v)` | ||
FROM `test_default_enable_mv`.`t1` | ||
GROUP BY `t1`.`k`; | ||
-- !result | ||
admin set frontend config('enable_replicated_storage_as_default_engine'='true'); | ||
-- result: | ||
-- !result |
Oops, something went wrong.