This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new d06f9e03ea8 branch-3.0: [refactor](test) refactor compression test to 
verify compatibility of ARM and X86 #49396 (#49432)
d06f9e03ea8 is described below

commit d06f9e03ea822f91f1816d75007fb765f0f9b154
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Mar 25 17:13:46 2025 +0800

    branch-3.0: [refactor](test) refactor compression test to verify 
compatibility of ARM and X86 #49396 (#49432)
    
    Cherry-picked from #49396
    
    Co-authored-by: hui lai <lai...@selectdb.com>
---
 .../data/compression_p0/{load.out => query.out}    | Bin 2093 -> 2425 bytes
 regression-test/suites/compression_p0/load.groovy  |  38 +++++++++++++++++----
 regression-test/suites/compression_p0/query.groovy |  31 +++++++++++++++++
 3 files changed, 63 insertions(+), 6 deletions(-)

diff --git a/regression-test/data/compression_p0/load.out 
b/regression-test/data/compression_p0/query.out
similarity index 86%
rename from regression-test/data/compression_p0/load.out
rename to regression-test/data/compression_p0/query.out
index a45b9d3948f..1c04024312f 100644
Binary files a/regression-test/data/compression_p0/load.out and 
b/regression-test/data/compression_p0/query.out differ
diff --git a/regression-test/suites/compression_p0/load.groovy 
b/regression-test/suites/compression_p0/load.groovy
index 70eeafea12a..ff41423094f 100644
--- a/regression-test/suites/compression_p0/load.groovy
+++ b/regression-test/suites/compression_p0/load.groovy
@@ -66,7 +66,6 @@ suite("test_compression", "p0") {
     }
     
     sql "sync"
-    order_qt_sql1 "select * from ${tableName} order by k1, k2"
 
 
     // test LZ4 compression algorithm
@@ -119,7 +118,6 @@ suite("test_compression", "p0") {
     }
     
     sql "sync"
-    order_qt_sql2 "select * from ${tableName} order by k1, k2"
 
 
     // test LZ4F compression algorithm
@@ -172,7 +170,6 @@ suite("test_compression", "p0") {
     }
     
     sql "sync"
-    order_qt_sql3 "select * from ${tableName} order by k1, k2"
 
 
     // test LZ4HC compression algorithm
@@ -225,7 +222,6 @@ suite("test_compression", "p0") {
     }
     
     sql "sync"
-    order_qt_sql4 "select * from ${tableName} order by k1, k2"
 
     
     // test ZLIB compression algorithm
@@ -278,7 +274,6 @@ suite("test_compression", "p0") {
     }
     
     sql "sync"
-    order_qt_sql5 "select * from ${tableName} order by k1, k2"
 
 
     // test ZSTD compression algorithm
@@ -331,5 +326,36 @@ suite("test_compression", "p0") {
     }
     
     sql "sync"
-    order_qt_sql6 "select * from ${tableName} order by k1, k2"
+
+    // test GZIP compression algorithm
+    tableName = "test_GZIP"
+
+    sql """ DROP TABLE IF EXISTS ${tableName} """
+    try {
+        sql """
+        CREATE TABLE IF NOT EXISTS ${tableName} (
+            `k1` bigint(20) NULL,
+            `k2` tinyint(4) NULL,
+            `k3` smallint(6) NULL,
+            `k4` int(11) NULL,
+            `k5` bigint(20) NULL,
+            `k6` largeint(40) NULL,
+            `k7` datetime NULL,
+            `k8` date NULL,
+            `k9` char(10) NULL,
+            `k10` varchar(6) NULL,
+            `k11` decimal(27, 9) NULL
+        ) ENGINE=OLAP
+        Duplicate KEY(`k1`, `k2`)
+        COMMENT 'OLAP'
+        DISTRIBUTED BY HASH(`k1`, `k2`) BUCKETS 3
+        PROPERTIES (
+            "replication_allocation" = "tag.location.default: 1",
+            "compression" = "GZIP"
+        );
+    """
+    } catch (Exception e) {
+        log.info("Stream load result: ${e}".toString())
+        assertTrue(e.getMessage().contains("unknown compression type: GZIP"))
+    }
 }
\ No newline at end of file
diff --git a/regression-test/suites/compression_p0/query.groovy 
b/regression-test/suites/compression_p0/query.groovy
new file mode 100644
index 00000000000..53aaf704c68
--- /dev/null
+++ b/regression-test/suites/compression_p0/query.groovy
@@ -0,0 +1,31 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+suite("query") {
+    def tableName = "test_snappy"
+    order_qt_sql1 "select * from ${tableName} order by k1, k2"
+    tableName = "test_LZ4"
+    order_qt_sql2 "select * from ${tableName} order by k1, k2"
+    tableName = "test_LZ4F"
+    order_qt_sql3 "select * from ${tableName} order by k1, k2"
+    tableName = "test_LZ4HC"
+    order_qt_sql4 "select * from ${tableName} order by k1, k2"
+    tableName = "test_ZLIB"
+    order_qt_sql5 "select * from ${tableName} order by k1, k2"
+    tableName = "test_ZSTD"
+    order_qt_sql6 "select * from ${tableName} order by k1, k2"
+}
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to