Repository navigation
Antalya 26.8 Backport of #128865 - Fix wrong ORDER BY results and pushed bucket twice with offset based parallel replicas - #2799
Conversation
…plicas-ordered-merges Fix wrong `ORDER BY` results and `pushed bucket twice` with offset based parallel replicas Conflicts committed as-is; the next commit resolves them: - src/Processors/QueryPlan/Optimizations/Optimizations.h (both modified) - src/Processors/QueryPlan/Optimizations/optimizeTree.cpp (both modified) - src/Processors/QueryPlan/ReadFromRemote.cpp (both modified) - src/Processors/QueryPlan/ReadFromRemote.h (both modified)
Kept the PR's new last optimization pass and the `allow_reading_shard_from_several_replicas` flag, and dropped master-only code that came in through the conflicts (`UseProjectionsResult`, the HAVING prefilter pass, the unavailable-shard tracker in `addPipes`).
|
Backporter: cherry-pick conflicts resolved by AI Conflicted files:
Commits:
|
CI triage for 4625385 (run 42066757212)Summary: none of the test failures are caused by this PR. The only problem on the PR itself is DCO, and that's a sign-off issue, not code.
The PR's own coverage is green. All stateless suites passed with 0 failures, for example 1. Integration tests (amd_asan_ubsan, db disk, old analyzer): 4 shards
What the errors say:
Evidence that these come from the base branch: the same modules fail, with the same counts, on other open antalya-26.8 PRs that don't touch this code:
Next step: nothing to do on this PR. These need fixing on antalya-26.8: the mock-container image ( 2. Regression release swarms (report)Failing scenarios:
Evidence: #2792 and #2800 fail exactly these three scenarios, with the same 3. DCOThe upstream merge commit that the backport brings in has no I didn't re-run anything locally. The test names and error lines come from the praktika |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fixed wrong results of
ORDER BY(unsorted rows, wrong rows underLIMIT) and theGroupingAggregatedTransform pushed bucket ... twiceerror (duplicated groups in older versions) of queries withparallel_replicas_mode = 'sampling_key', or a custom key mode on a cluster with more than one shard. Such a query now reads a shard from one replica unless the initiator only aggregates or fully sorts the parts returned by the replicas. (ClickHouse#128865 by @groeneai)Documentation entry for user-facing changes
...
CI/CD Options
Exclude tests:
Regression jobs to run: