eldenmoon commented on code in PR #55124:
URL: https://github.com/apache/doris/pull/55124#discussion_r2315688528
##########
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")
+ sql """ select v['a'] from tn_simple_variant_DUPLICATE where k = 1"""
+ } finally {
+
GetDebugPoint().disableDebugPointForAllBEs("exceeded_sparse_column_limit_must_be_false")
+ }
+ try {
+
GetDebugPoint().enableDebugPointForAllBEs("exceeded_sparse_column_limit_must_be_false")
+ sql """ select v['m'] from tn_simple_variant_DUPLICATE where k = 2"""
+ } catch (e) {
+ logger.info("catch exception: ${e}")
Review Comment:
这里得改成test { exception}的形式,不然check不出来
--
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]