Skip to content

Commit 2a2e17a

Browse files
morningmanclaude
andcommitted
[fix](test) pin default_variant_max_subcolumns_count in test_variant_compaction_with_sparse_limit
The session-variable fuzzer randomized default_variant_max_subcolumns_count to a small value, which diverts nested field v['b'] into the variant sparse column; that path reads empty after cumulative compaction on this branch, so sql_33 returned empty. Pin it to 2048 (the FE default the .out was generated under) so all nested paths stay typed subcolumns and the case is deterministic. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
1 parent b76d9b9 commit 2a2e17a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎regression-test/suites/variant_p0/predefine/test_variant_compaction_with_sparse_limit.groovy‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ suite("test_compaction_variant_predefine_with_sparse_limit", "nonConcurrent") {
2323
def backendId_to_backendHttpPort = [:]
2424
getBackendIpHttpPort(backendId_to_backendIP, backendId_to_backendHttpPort);
2525

26+
// Pin variant_max_subcolumns_count so the session-variable fuzzer
27+
// (use_fuzzy_session_variable) cannot randomize it to a small value. With the
28+
// default (2048) all nested paths (including v['b']/v['b']['c']) are materialized
29+
// as typed subcolumns, which is what the expected .out was generated under. A small
30+
// value diverts v['b'] into the sparse column, which is unreadable after cumulative
31+
// compaction on this branch.
32+
sql """ set default_variant_max_subcolumns_count = 2048 """
33+
2634
try {
2735
String backend_id = backendId_to_backendIP.keySet()[0]
2836
def (code, out, err) = show_be_config(backendId_to_backendIP.get(backend_id), backendId_to_backendHttpPort.get(backend_id))

0 commit comments

Comments
 (0)