Skip to content

Commit

Permalink
[chore](test) correct create table statement (apache#28863)
Browse files Browse the repository at this point in the history
  • Loading branch information
starocean999 authored and HappenLee committed Jan 12, 2024
1 parent cee5950 commit d839950
Show file tree
Hide file tree
Showing 28 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion regression-test/suites/correctness/test_in_null.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ suite("test_in_null") {
sql """ DROP TABLE IF EXISTS db """
sql """
CREATE TABLE IF NOT EXISTS db(
`id` INT NULL ,
`id` INT NULL
) ENGINE=OLAP
DUPLICATE KEY(`id`)
DISTRIBUTED BY HASH(`id`) BUCKETS 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ suite("test_many_inlineview") {
sql """
CREATE TABLE `ods_drp_xpi_storemain` (
`fID` varchar(300) NOT NULL COMMENT 'ID',
`fStoreCode` varchar(150) NULL COMMENT '店铺编码',
`fStoreCode` varchar(150) NULL COMMENT '店铺编码'
) ENGINE=OLAP
UNIQUE KEY(`fID`)
DISTRIBUTED BY HASH(`fID`) BUCKETS 4
Expand Down
2 changes: 1 addition & 1 deletion regression-test/suites/ddl_p0/test_ctas.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ suite("test_ctas") {
`l_varchar` varchar(65533) NULL
) ENGINE=OLAP
DUPLICATE KEY(`l_varchar`)
COMMENT 'OLAP\'
COMMENT 'OLAP'
DISTRIBUTED BY HASH(`l_varchar`) BUCKETS 10
PROPERTIES (
"replication_allocation" = "tag.location.default: 1",
Expand Down
4 changes: 2 additions & 2 deletions regression-test/suites/delete_p0/test_delete.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ suite("test_delete") {
sql """
CREATE TABLE `dwd_pay` (
`tenant_id` int(11) DEFAULT NULL COMMENT '租户ID',
`pay_time` datetime DEFAULT NULL COMMENT '付款时间',
`pay_time` datetime DEFAULT NULL COMMENT '付款时间'
) ENGINE=OLAP
DUPLICATE KEY(`tenant_id`)
COMMENT "付款明细"
Expand Down Expand Up @@ -308,7 +308,7 @@ suite("test_delete") {
col_10 datetime,
col_11 boolean,
col_12 decimalv2(10,3),
col_8 string,
col_8 string
) ENGINE=OLAP
duplicate KEY(`col_1`, col_2, col_3, col_4, col_5, col_6, col_7, col_9, col_10, col_11, col_12)
COMMENT 'OLAP'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ suite("test_queries_tvf","p0,external,tvf,external_docker") {
CREATE TABLE IF NOT EXISTS ${table_name} (
`user_id` LARGEINT NOT NULL COMMENT "用户id",
`name` STRING COMMENT "用户名称",
`age` INT COMMENT "用户年龄",
`age` INT COMMENT "用户年龄"
)
DISTRIBUTED BY HASH(user_id) PROPERTIES("replication_num" = "1");
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ CREATE TABLE dup_tbl_array
kd13 array<DATEV2> NOT NULL DEFAULT "[]",
kd14 array<DATETIMEV2> NOT NULL DEFAULT "[]",
kd15 array<CHAR> NOT NULL DEFAULT "[]",
kd16 array<VARCHAR> NOT NULL DEFAULT "[]",
kd16 array<VARCHAR> NOT NULL DEFAULT "[]"
)
DUPLICATE KEY(k00)
DISTRIBUTED BY HASH(k00) BUCKETS 32
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ CREATE TABLE dup_tbl_basic
INDEX idx_ngrambf_k117 (`k17`) USING NGRAM_BF PROPERTIES("gram_size"="3", "bf_size"="256"),

INDEX idx_bitmap_k104 (`k02`) USING BITMAP,
INDEX idx_bitmap_k110 (`kd01`) USING BITMAP,
INDEX idx_bitmap_k110 (`kd01`) USING BITMAP

)
DUPLICATE KEY(k00)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ CREATE TABLE uniq_tbl_array
kd14 array<DATETIMEV2> NOT NULL DEFAULT "[]",
kd15 array<CHAR> NOT NULL DEFAULT "[]",
kd16 array<VARCHAR> NOT NULL DEFAULT "[]",
kd17 array<STRING> NOT NULL DEFAULT "[]",
kd17 array<STRING> NOT NULL DEFAULT "[]"
)
UNIQUE KEY(k00)
DISTRIBUTED BY HASH(k00) BUCKETS 32
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ suite("test_http_stream_json", "p0") {
CREATE TABLE IF NOT EXISTS ${tableName1} (
id int,
city VARCHAR(10),
code int,
code int
)
DISTRIBUTED BY HASH(id) BUCKETS 1
PROPERTIES (
Expand Down Expand Up @@ -70,7 +70,7 @@ suite("test_http_stream_json", "p0") {
CREATE TABLE IF NOT EXISTS ${tableName2} (
id int,
city VARCHAR(10),
code int,
code int
)
DISTRIBUTED BY HASH(id) BUCKETS 1
PROPERTIES (
Expand Down Expand Up @@ -113,7 +113,7 @@ suite("test_http_stream_json", "p0") {
CREATE TABLE IF NOT EXISTS ${tableName3} (
id int,
city VARCHAR(10),
code int,
code int
)
DISTRIBUTED BY HASH(id) BUCKETS 1
PROPERTIES (
Expand Down Expand Up @@ -157,7 +157,7 @@ suite("test_http_stream_json", "p0") {
CREATE TABLE IF NOT EXISTS ${tableName4} (
id int,
city VARCHAR(10),
code int,
code int
)
DISTRIBUTED BY HASH(id) BUCKETS 1
PROPERTIES (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ CREATE TABLE routine_load_dup_tbl_array
kd13 array<DATEV2> NOT NULL DEFAULT "[]",
kd14 array<DATETIMEV2> NOT NULL DEFAULT "[]",
kd15 array<CHAR> NOT NULL DEFAULT "[]",
kd16 array<VARCHAR> NOT NULL DEFAULT "[]",
kd16 array<VARCHAR> NOT NULL DEFAULT "[]"
)
DUPLICATE KEY(k00)
DISTRIBUTED BY HASH(k00) BUCKETS 32
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ CREATE TABLE routine_load_dup_tbl_basic
INDEX idx_ngrambf_k117 (`k17`) USING NGRAM_BF PROPERTIES("gram_size"="3", "bf_size"="256"),

INDEX idx_bitmap_k104 (`k02`) USING BITMAP,
INDEX idx_bitmap_k110 (`kd01`) USING BITMAP,
INDEX idx_bitmap_k110 (`kd01`) USING BITMAP

)
DUPLICATE KEY(k00)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ CREATE TABLE routine_load_uniq_tbl_array
kd14 array<DATETIMEV2> NOT NULL DEFAULT "[]",
kd15 array<CHAR> NOT NULL DEFAULT "[]",
kd16 array<VARCHAR> NOT NULL DEFAULT "[]",
kd17 array<STRING> NOT NULL DEFAULT "[]",
kd17 array<STRING> NOT NULL DEFAULT "[]"
)
UNIQUE KEY(k00)
DISTRIBUTED BY HASH(k00) BUCKETS 32
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ CREATE TABLE stream_load_dup_tbl_array
kd13 array<DATEV2> NOT NULL DEFAULT "[]",
kd14 array<DATETIMEV2> NOT NULL DEFAULT "[]",
kd15 array<CHAR> NOT NULL DEFAULT "[]",
kd16 array<VARCHAR> NOT NULL DEFAULT "[]",
kd16 array<VARCHAR> NOT NULL DEFAULT "[]"
)
DUPLICATE KEY(k00)
DISTRIBUTED BY HASH(k00) BUCKETS 32
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ CREATE TABLE stream_load_dup_tbl_basic
INDEX idx_ngrambf_k117 (`k17`) USING NGRAM_BF PROPERTIES("gram_size"="3", "bf_size"="256"),

INDEX idx_bitmap_k104 (`k02`) USING BITMAP,
INDEX idx_bitmap_k110 (`kd01`) USING BITMAP,
INDEX idx_bitmap_k110 (`kd01`) USING BITMAP

)
DUPLICATE KEY(k00)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ CREATE TABLE stream_load_dup_tbl_basic_random_bucket
INDEX idx_ngrambf_k117 (`k17`) USING NGRAM_BF PROPERTIES("gram_size"="3", "bf_size"="256"),

INDEX idx_bitmap_k104 (`k02`) USING BITMAP,
INDEX idx_bitmap_k110 (`kd01`) USING BITMAP,
INDEX idx_bitmap_k110 (`kd01`) USING BITMAP

)
DUPLICATE KEY(k00)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ CREATE TABLE stream_load_uniq_tbl_array
kd14 array<DATETIMEV2> NOT NULL DEFAULT "[]",
kd15 array<CHAR> NOT NULL DEFAULT "[]",
kd16 array<VARCHAR> NOT NULL DEFAULT "[]",
kd17 array<STRING> NOT NULL DEFAULT "[]",
kd17 array<STRING> NOT NULL DEFAULT "[]"
)
UNIQUE KEY(k00)
DISTRIBUTED BY HASH(k00) BUCKETS 32
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,7 @@ suite("test_stream_load", "p0") {
`c47` varchar(48) NULL,
`c48` varchar(48) NULL,
`c49` varchar(48) NULL,
`c50` varchar(48) NULL,
`c50` varchar(48) NULL
) ENGINE=OLAP
DUPLICATE KEY(`c1`)
COMMENT 'OLAP'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ CREATE TABLE dup_tbl_array_tvf
kd13 array<DATEV2> NOT NULL DEFAULT "[]",
kd14 array<DATETIMEV2> NOT NULL DEFAULT "[]",
kd15 array<CHAR> NOT NULL DEFAULT "[]",
kd16 array<VARCHAR> NOT NULL DEFAULT "[]",
kd16 array<VARCHAR> NOT NULL DEFAULT "[]"
)
DUPLICATE KEY(k00)
DISTRIBUTED BY HASH(k00) BUCKETS 32
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ CREATE TABLE dup_tbl_basic_tvf
INDEX idx_ngrambf_k117 (`k17`) USING NGRAM_BF PROPERTIES("gram_size"="3", "bf_size"="256"),

INDEX idx_bitmap_k104 (`k02`) USING BITMAP,
INDEX idx_bitmap_k110 (`kd01`) USING BITMAP,
INDEX idx_bitmap_k110 (`kd01`) USING BITMAP

)
DUPLICATE KEY(k00)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ CREATE TABLE uniq_tbl_array_tvf
kd14 array<DATETIMEV2> NOT NULL DEFAULT "[]",
kd15 array<CHAR> NOT NULL DEFAULT "[]",
kd16 array<VARCHAR> NOT NULL DEFAULT "[]",
kd17 array<STRING> NOT NULL DEFAULT "[]",
kd17 array<STRING> NOT NULL DEFAULT "[]"
)
UNIQUE KEY(k00)
DISTRIBUTED BY HASH(k00) BUCKETS 32
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ suite("test_date_function_prune") {
sql """
CREATE TABLE `dp` (
`node_name` varchar(100) NULL COMMENT '',
`date_time` datetime NULL COMMENT '',
`date_time` datetime NULL COMMENT ''
) ENGINE=OLAP
DUPLICATE KEY(`node_name`)
COMMENT ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ suite("test_auto_list_partition") {
CREATE TABLE test_list_many_column2 (
id int not null,
k largeint not null,
str varchar not null,
str varchar not null
)
AUTO PARTITION BY LIST (`id`, `k`, `str`)
(
Expand All @@ -276,7 +276,7 @@ suite("test_auto_list_partition") {
CREATE TABLE test_list_many_column3 (
id int not null,
k largeint not null,
str varchar not null,
str varchar not null
)
AUTO PARTITION BY LIST (`id`, `k`, `str`)
(
Expand Down
2 changes: 1 addition & 1 deletion regression-test/suites/point_query_p0/test_rowstore.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ suite("test_rowstore", "p0") {
sql """
CREATE TABLE IF NOT EXISTS ${tableName} (
`k1` int(11) NULL COMMENT "",
`k2` text NULL COMMENT "",
`k2` text NULL COMMENT ""
) ENGINE=OLAP
UNIQUE KEY(`k1`)
DISTRIBUTED BY HASH(`k1`) BUCKETS 1
Expand Down
2 changes: 1 addition & 1 deletion regression-test/suites/query_p0/aggregate/array_agg.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ suite("array_agg") {
CREATE TABLE `test_array_agg` (
`id` int(11) NOT NULL,
`label_name` varchar(32) default null,
`value_field` string default null,
`value_field` string default null
) ENGINE=OLAP
DUPLICATE KEY(`id`)
COMMENT 'OLAP'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ suite("test_map_select_with_limit", "query") {
sql """
CREATE TABLE IF NOT EXISTS ${testTable} (
`k1` INT(11) NULL,
`k2` MAP<SMALLINT(6), STRING> NULL,
`k2` MAP<SMALLINT(6), STRING> NULL
) ENGINE=OLAP
DUPLICATE KEY(`k1`)
COMMENT 'OLAP'
Expand Down
2 changes: 1 addition & 1 deletion regression-test/suites/query_p0/sort/sort.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ suite("sort") {
`col_varchar` VARCHAR(10) NOT NULL,
`col_varchar_null` VARCHAR(10) NULL,
`col_char` CHAR(10) NOT NULL,
`col_char_null` CHAR(10) NULL,
`col_char_null` CHAR(10) NULL
) ENGINE=OLAP
DUPLICATE KEY(`row_id`)
DISTRIBUTED BY HASH(`row_id`) BUCKETS 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ suite("test_array_char_orderby", "query") {
sql """
CREATE TABLE IF NOT EXISTS ${testTable} (
`k1` INT(11) NULL,
`k2` array<array<char(50)>> NULL,
`k2` array<array<char(50)>> NULL
) ENGINE=OLAP
DUPLICATE KEY(`k1`)
COMMENT 'OLAP'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ suite("test_show_create_table_and_views", "show") {
CREATE TABLE ${dbName}.${tableName} (
`user_id` LARGEINT NOT NULL,
`good_id` LARGEINT NOT NULL,
`cost` BIGINT SUM DEFAULT "0",
`cost` BIGINT SUM DEFAULT "0"
)
AGGREGATE KEY(`user_id`, `good_id`)
PARTITION BY RANGE(`good_id`)
Expand Down

0 comments on commit d839950

Please sign in to comment.