Repository navigation
Pin the parallel replicas checks that only the query-based implementation passes - #127396
Conversation
…tion passes Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Workflow [PR], commit [cc8cb02] Summary: ✅ AI ReviewSummaryThis PR pins implementation-specific assertions in four stateless tests to Final VerdictStatus: ✅ Approve. |
groeneai
left a comment
There was a problem hiding this comment.
The pins keep the intent of the two tests I wrote.
05288: without the pins, atparallel_replicas_plan_based = 1only the three*_skips_recordedlines flip to 0. Theworkers_ran,not_fuzzedandno_internal_workerslines still pass, so plan-based workers are not fuzzed either; the pinned arms only give up a counter the plan-based path never reaches.05320: atplan_based = 1the positive control goes 1 -> 0, and the first check passes vacuously, since the plan-based implementation has noReadFromRemoteParallelReplicasstep at all. The three plan-based checks below already cover the refusal, the row threshold and the positive control.
Measured with the master binary (31d10e5ef277), a local server with process_query_plan_packet on, 5 randomized runs per arm. With this PR: 40/40 OK at parallel_replicas_plan_based 1 and 0. On the base: 20/20 FAIL at 1 (all result diffs), 20/20 OK at 0.
|
I can't do that one: I don't have write access to this repository, so I can't push to It should be a clean merge: a three-way merge of |
Description
Four tests fail with
parallel_replicas_plan_based = 1because they check what only the query-based implementation of parallel replicas does. The plan-based behaviour is correct there, so the affected queries are pinned withparallel_replicas_plan_based = 0. The rest of each test still runs on the default implementation.05401_autopr_set_transplant_unpaired_sets: the test relies on shipping a query tree, where long constants become__getScalarand theINset loses its counterpart. The plan-based implementation ships a plan fragment, the sets hash alike, and the query switches with the same result. The four05401_long_*and05401_all_*queries are pinned; the join pair is not.05331_autopr_plan_builder_skip_reasons: the skip by query shape looks at the query tree. The plan-based implementation decides on the plan, builds it, and finds no read for the other replicas in it. Onlyautopr_builder_skip_shapeis pinned.05288_ast_fuzzer_skips_collaborative_worker: the skip is counted on a worker that parses the statement it was sent. A plan-based worker receives a plan fragment and has no AST to fuzz, so it never reaches the skip; the workers are still not fuzzed. The twoINSERT ... SELECTand the view read are pinned; thefileClusterarm is not.05320_parallel_replicas_right_join_right_any: the two checks look forReadFromRemoteParallelReplicas, the step name of the query-based implementation. The plan-based implementation is already checked by the queries below them.All four pass with
parallel_replicas_plan_basedset to 1 and to 0.This is part of enabling a CI run with plan-based parallel replicas.
Related: #112351
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/127396]
Version info
26.11.1.737-master(included in26.11and later)