From a60bb80cf1237e11884533a65ece91b811bb37e5 Mon Sep 17 00:00:00 2001 From: Luwei <814383175@qq.com> Date: Fri, 12 Jul 2024 18:05:17 +0800 Subject: [PATCH] [fix](regression) fix compaction_width_array_column case (#37664) --- .../suites/compaction/ddl/column_witdh_array.sql | 12 ++++++++++++ .../compaction/ddl/column_witdh_array_load.sql | 5 +++++ 2 files changed, 17 insertions(+) create mode 100644 regression-test/suites/compaction/ddl/column_witdh_array.sql create mode 100644 regression-test/suites/compaction/ddl/column_witdh_array_load.sql diff --git a/regression-test/suites/compaction/ddl/column_witdh_array.sql b/regression-test/suites/compaction/ddl/column_witdh_array.sql new file mode 100644 index 00000000000000..b51345a2084773 --- /dev/null +++ b/regression-test/suites/compaction/ddl/column_witdh_array.sql @@ -0,0 +1,12 @@ +CREATE TABLE column_witdh_array ( + street VARCHAR NOT NULL, + streetaddress VARCHAR NOT NULL, + k1 JSON NULL, + k2 JSON NULL +) ENGINE=OLAP +DUPLICATE KEY(street, streetaddress) +DISTRIBUTED BY HASH(street) BUCKETS 2 +PROPERTIES ( + "replication_num" = "1", + "disable_auto_compaction" = "true" +) diff --git a/regression-test/suites/compaction/ddl/column_witdh_array_load.sql b/regression-test/suites/compaction/ddl/column_witdh_array_load.sql new file mode 100644 index 00000000000000..d451c2449d0b55 --- /dev/null +++ b/regression-test/suites/compaction/ddl/column_witdh_array_load.sql @@ -0,0 +1,5 @@ +LOAD LABEL ${loadLabel} ( + DATA INFILE("s3://${s3BucketName}/regression/compaction/large_data_line/large_data_line.*.csv") + INTO TABLE ${table_name} + COLUMNS TERMINATED BY "|" +)