amorynan commented on code in PR #55124:
URL: https://github.com/apache/doris/pull/55124#discussion_r2315111756


##########
regression-test/suites/fault_injection_p0/test_variant_compaction_with_sparse_limit.groovy:
##########
@@ -133,8 +135,40 @@ suite("test_compaction_variant_with_sparse_limit", 
"nonConcurrent") {
             qt_sql_55 "select cast(v['b'] as string), cast(v['b']['c'] as 
string) from  ${tableName} where cast(v['b'] as string) != 'null' and 
cast(v['b'] as string) != '{}' order by k desc limit 10;"
         }
 
+    } catch (e) {
+        logger.info("catch exception: ${e}")
+    } finally {
+        sql "DROP TABLE IF EXISTS simple_variant_DUPLICATE"
+        sql "DROP TABLE IF EXISTS simple_variant_UNIQUE"
+        sql "DROP TABLE IF EXISTS simple_variant_AGGREGATE"
+    }
+
+    // test  variant_max_sparse_column_statistics_size debug error case
+    sql "DROP TABLE IF EXISTS tn_simple_variant_DUPLICATE"
+    sql """
+        CREATE TABLE IF NOT EXISTS tn_simple_variant_DUPLICATE (
+            k bigint,
+            v variant <properties(\"variant_max_subcolumns_count\" = \"2\", 
\"variant_max_sparse_column_statistics_size\" = \"1\")>
+        )
+        DUPLICATE KEY(`k`)
+        DISTRIBUTED BY HASH(k) BUCKETS 1
+        properties("replication_num" = "1", "disable_auto_compaction" = 
"true");
+    """
+    sql """insert into tn_simple_variant_DUPLICATE values (1, '{"a" : 1, "b" : 
2}');"""
+    sql """insert into tn_simple_variant_DUPLICATE values (2, '{"d" : "ddd",  
"s" : "fff", "m": 111}');"""
+    // here will aways false
+    try {
+        
GetDebugPoint().enableDebugPointForAllBEs("exceeded_sparse_column_limit_must_be_false")

Review Comment:
   这里由insert into 的 values 就可以决定这个 flag 了, 我的case 中也包含了 true和false的 ,本地都测过了



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to