Skip to content

Commit

Permalink
fix case
Browse files Browse the repository at this point in the history
  • Loading branch information
amorynan committed Dec 12, 2024
1 parent 3bdfc39 commit 370c175
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
15 changes: 6 additions & 9 deletions regression-test/data/datatype_p0/ip/test_ip_basic.out
Original file line number Diff line number Diff line change
Expand Up @@ -378,17 +378,14 @@ ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 4
2 :: 127.0.0.1

-- !sql --
table_ip_default CREATE TABLE `table_ip_default` (\n `col0` bigint NOT NULL,\n `col4` ipv6 NULL DEFAULT "::",\n `col24` ipv4 NULL DEFAULT "127.0.0.1"\n) ENGINE=OLAP\nUNIQUE KEY(`col0`)\nDISTRIBUTED BY HASH(`col0`) BUCKETS 4\nPROPERTIES (\n"replication_allocation" = "tag.location.default: 1",\n"min_load_replica_num" = "-1",\n"is_being_synced" = "false",\n"storage_medium" = "hdd",\n"storage_format" = "V2",\n"inverted_index_storage_format" = "V2",\n"enable_unique_key_merge_on_write" = "true",\n"light_schema_change" = "true",\n"disable_auto_compaction" = "false",\n"binlog.enable" = "false",\n"binlog.ttl_seconds" = "86400",\n"binlog.max_bytes" = "9223372036854775807",\n"binlog.max_history_nums" = "9223372036854775807",\n"enable_single_replica_compaction" = "false",\n"group_commit_interval_ms" = "10000",\n"group_commit_data_bytes" = "134217728",\n"enable_mow_light_delete" = "false"\n);
table_ip_default UNIQUE_KEYS col0 bigint bigint No true \N true
col4 ipv6 ipv6 Yes false :: NONE true
col24 ipv4 ipv4 Yes false 127.0.0.1 NONE true

-- !sql --
col0 bigint No true \N
col4 ipv6 Yes false :: NONE
col24 ipv4 Yes false 127.0.0.1 NONE

-- !sql --
col0 bigint No true \N
col4 ipv6 Yes false :: NONE
col24 ipv4 Yes false 127.0.0.1 NONE
table_ip_default_like UNIQUE_KEYS col0 bigint bigint No true \N true
col4 ipv6 ipv6 Yes false :: NONE true
col24 ipv4 ipv4 Yes false 127.0.0.1 NONE true

-- !sql --
2
Expand Down
9 changes: 6 additions & 3 deletions regression-test/suites/datatype_p0/ip/test_ip_basic.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,14 @@ suite("test_ip_basic") {
// create table like
// insert into table
// alter new ip column with default value
qt_sql """ show create table table_ip_default """
qt_sql """ desc table_ip_default """
def result = sql """ show create table table_ip_default """
log.info("show result : ${result}")
assertTrue(result.toString().containsIgnoreCase("`col4` ipv6 NULL DEFAULT \"::\""))
assertTrue(result.toString().containsIgnoreCase("`col24` ipv4 NULL DEFAULT \"127.0.0.1\""))
qt_sql """ desc table_ip_default all"""
sql """ DROP TABLE IF EXISTS table_ip_default_like """
sql """ create table table_ip_default_like like table_ip_default """
qt_sql """ desc table_ip_default_like"""
qt_sql """ desc table_ip_default_like all"""
qt_sql """ insert into table_ip_default_like select * from table_ip_default """
qt_sql """ select * from table_ip_default_like order by col0 """
qt_sql """ alter table table_ip_default_like add column col25 ipv6 NULL DEFAULT "::" """
Expand Down

0 comments on commit 370c175

Please sign in to comment.