Repository navigation
Add testcases for default columns - #100048
Conversation
|
Workflow [PR], commit [2befe2e] Summary: ✅ AI ReviewSummaryThis PR adds stateless coverage around default-expression dependency ordering, tuple subcolumn references, cyclic defaults, and long dependency chains as a follow-up to Missing context / blind spots
Findings
Final Verdict |
5102aa7 to
681237e
Compare
rienath
left a comment
There was a problem hiding this comment.
Let's add no-tsan/no-asan/no-msan to 04041 and no-old-analyzer to 04040
| SELECT * FROM test_tuple_elem ORDER BY a; | ||
| DROP TABLE test_tuple_elem; | ||
|
|
||
| SELECT 'test_tuple_elem2: Bug, expected to have same result as test_tuple_elem, but missed dependency of b on a subcolumn:'; |
There was a problem hiding this comment.
test_tuple_elem case proves that an inserted a = (5, 6) should make b = (50, 60), but this case labels the a.x path as a bug and the reference asserts b = (10, 20) for the same inserted a.
That means CI will keep accepting the missing subcolumn dependency in AddingDefaultsTransform instead of protecting the default-expression contract fixed by #94615. Please either fix dependency extraction for subcolumns and expect (5,6) (50,60), or move this to a disabled/issue-linked known-bug test so the passing stateless suite does not encode the wrong semantics.
There was a problem hiding this comment.
The bug is acknowledged in the test and when it's fixed test can be changed
| {%- for i in range(1, 1000) %}, | ||
| c{{ i }} UInt64 DEFAULT c{{ i - 1 }} + 1 | ||
| {%- endfor %} | ||
| ) ENGINE = Memory; -- { serverError TOO_DEEP_RECURSION } |
There was a problem hiding this comment.
Seems it depends on build whether it fails or not, perhaps we should introduce some guard rather then relying on stack exhaustion
There was a problem hiding this comment.
Indeed
#if !defined(THREAD_SANITIZER)
/// It's overkill to use more then half of stack.
static constexpr double STACK_SIZE_FREE_RATIO = 0.5;
#else
/// Under TSan recursion eats too much RAM, so half of stack is too much.
/// So under TSan only 5% of a stack is allowed (this is ~400K)
static constexpr double STACK_SIZE_FREE_RATIO = 0.05;
#endifWe could alternatively add #no-flaky-check s.t. we don't run the test under thread sanitiser. Might be slightly easier
455d242 to
0627b4e
Compare
LLVM Coverage Report
Changed lines: No C/C++ source files changed — skipping uncovered code analysis. Newly covered by added/modified tests: 456 line(s), 22 function(s) across 138 file(s) · Details Top files
|
| @@ -0,0 +1,30 @@ | |||
| -- Tags: long | |||
There was a problem hiding this comment.
The test is too heavy for our instrumented and debug builds in CI. We either need to add no-asan, no-tsan, no-msan, no-ubsan, no-debug or reduce the chain size
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction. Compile time of recompiled translation units7 translation units recompiled, 27 s compile time in total, 7 of them have a recent master baseline. |
Changelog category (leave one):
Followup for #94615
Workflow [PR]
Sync PR [sync-upstream/pr/100048]