Repository navigation
Add test: Trivial count with AND of partition column and non-deterministic function on partitioned MergeTree is untested - #103893
clickgapai wants to merge 2 commits into
Conversation
|
Workflow [PR], commit [4d0277e] Summary: ❌
|
|
CI check This PR is test-only; the bot will not retrigger CI or modify the test to chase a failure that appears unrelated. If you believe the failure is related to this test, please comment with details and the bot will re-evaluate. |
|
This PR has accumulated 5 CI failures that don't reference its test, so the bot has not attempted any fix. Closing — please re-run CI or comment if you'd like the bot to look again. |
|
ClickGap AI Bot seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
|
CI failure in |
|
@groeneai can you take this up and open a new PR? |
|
Taking this up. Triaged against master Verified: It will be re-filed as part of an area-grouped PR rather than its own PR, to keep reviewer load down (26 in this batch plus 18 from the earlier one today). Full triage and the grouping plan: #101781 (comment) |
|
Not re-filing this one, and here is the reason rather than silence.
Two nearby branches genuinely are uncovered, but neither is what this test targets: the The other six gaps from this batch's MergeTree/index group are resolved in #114305. |
Found via ClickGap automated review. Please close or comment if this is incorrect or needs adjustment.
Retrospective finding from a historical scan of PR #60586 (merged 2024-03-13). Confirmed on current codebase — close with a note if already fixed.
This is a test-only PR — no source code changes. Please review: test quality, whether the claimed coverage gaps are real, and whether test output makes sense.
Adds test coverage for 1 untested code path(s), found during automated review of PR #60586.
That PR PR #60586 fixes wrong results when reading from
MergeTreewith non-deterministic functions (e.g.rand()) in the filter. Three changes: (1) adds newVirtualColumnUtils::isDeterministicInScopeOfQueryhelper that recursively checks if all functions in anActionsDAGsubtree are deterministic in1. Trivial count with AND of partition column and non-deterministic function on partitioned
MergeTreeis untestedsrc/Storages/MergeTree/MergeTreeData.cpp:1702,src/Storages/VirtualColumnUtils.cpp:627Risk: PR test 03002 only covers TOP-LEVEL non-deterministic filter (
RAND() > X) on a non-partitionedMergeTree— that path hits line 627 directly without going through AND-internal propagation. Risk: ifWhat's unique vs PR tests: PR test 03002 covers a TOP-LEVEL non-deterministic filter (
WHERE RAND() > X) on a NON-PARTITIONEDMergeTree— that exercises only the direct `else if (!isDeterministicInScopeOfQuery(node)) returnTry it on ClickHouse Fiddle
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not applicable — test-only change.
Documentation entry for user-facing changes