Repository navigation
Do not run 02810 with parallel replicas - #131666
Merged
Merged
Conversation
The test counts the `DISTINCT` steps in EXPLAIN. With parallel replicas, EXPLAIN also prints the preliminary `DISTINCT` that runs on the replicas: in the query sent to them (query-based), or in the plan fragment (plan-based, since #130355 ships the preliminary `DISTINCT`). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Workflow [PR], commit [022a820] Summary: ✅ AI ReviewSummaryPR #131666, head Final VerdictStatus: ✅ Approve |
devcrafter
enabled auto-merge
November 14, 2026 18:09
groeneai
approved these changes
Nov 14, 2026
groeneai
left a comment
Collaborator
There was a problem hiding this comment.
Approving. What I checked:
no-parallel-replicascovers every parallel replicas job:should_skip_testskips the test whenever the runner gets--no-parallel-replicas, and the plan-based job of #128413 gets it too (its options includeParallelReplicas), so dropping the blacklist line re-enables the test nowhere. In the other jobs the tag forcesenable_parallel_replicas = 0and skips theautomatic_parallel_replicas_mode = 2injection, so the assertion still runs there.- The failure was only ever the EXPLAIN count. The CI diffs (query-based job, every run in 30 days; plan-based job of #128413 since #130355 merged) are
2->3on both EXPLAIN queries, whileSELECT DISTINCT x FROM tab_v ORDER BY xreturns1,2. The tag hides no wrong result. - On master
a33e1c16with 3 local replicas,query_plan_remove_redundant_distinct = 1removes the same two lines in every mode: 4 -> 2 without parallel replicas, 5 -> 3 query-based, 5 -> 3 plan-based. The extra line is the replicas' preliminaryDISTINCT(the shipped fragment in plan-based, theReadFromRemoteParallelReplicasquery text in query-based), as the description says. - #131665 is the
LIMITpushdown gap with its own repro, separate from what 02810 asserts.
devcrafter
added a commit
that referenced
this pull request
Nov 14, 2026
…under plan-based A plan-based replica cannot find a WASM UDF in the plan fragment: #130859. The query added to make the test fail deterministically ran on remote replicas in every job, and in the flaky check a replica query still held the module when the test deleted it (`CANNOT_DROP_FUNCTION`). Restore the test and pin it instead. Also list `02810` until #131666 is merged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
devcrafter
added a commit
that referenced
this pull request
Nov 14, 2026
…st, regenerate the workflows They are pinned or tagged in master since #131464 and #131666. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
02810_fix_remove_dedundant_distinct_viewcounts the EXPLAIN lines that mentionDISTINCT, to check thatquery_plan_remove_redundant_distinctremoves the outerDISTINCTof aDISTINCTover a view. With parallel replicas, EXPLAIN also prints the preliminaryDISTINCTthat runs on the replicas: in the query sent to them with query-based parallel replicas, and in the plan fragment with plan-based parallel replicas, which ships the preliminaryDISTINCTsince #130355. The test is already listed intests/parallel_replicas_blacklist.txtfor that reason, and fails the same way in the plan-based parallel replicas job of #128413.This tags it
no-parallel-replicasand removes it from the blacklist. The plan is the same in all modes: the redundantDISTINCTis removed. With parallel replicas, theLIMITof such a query is not pushed down to the replicas; that is tracked separately, with its own test to come with the fix.Related: #131665
Related: #130355
Related: #128413
Changelog category (leave one):
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/131666]
Version info
26.11.1.2317-master(included in26.11and later)