Repository navigation
[Backport 3.9] Remove the opt-in partial-result mode for mapping conflicts (#5814) - #5865
Merged
ahkcs merged 1 commit intoOct 12, 2026
Merged
Conversation
ahkcs
requested review from
LantaoJin,
RyanL1997,
Swiddis,
acarbonetto,
anirudha,
dai-chen,
joshuali925,
mengweieric,
noCharger,
penghuo,
ps48,
qianheng-aws,
songkant-aws,
vamsimanohar,
ykmr1224 and
yuancu
as code owners
October 12, 2026 21:15
Contributor
PR Reviewer Guide 🔍(Review updated until commit 56d9009)Here are some key observations to aid the review process:
|
Swiddis
approved these changes
Oct 12, 2026
Codecov Report❌ Patch coverage is
❌ Your project check has failed because the head coverage (62.93%) is below the target coverage (99.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## 3.9 #5865 +/- ##
============================================
+ Coverage 62.89% 62.93% +0.04%
+ Complexity 8819 8798 -21
============================================
Files 939 938 -1
Lines 40235 40092 -143
Branches 4531 4507 -24
============================================
- Hits 25304 25232 -72
+ Misses 14125 14055 -70
+ Partials 806 805 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…ch-project#5814) * Remove the opt-in partial-result mode for mapping conflicts The mode (opensearch-project#5657) narrowed an aggregation to the index subset where the group field is aggregatable and labelled the result with a warning. It is being dropped: returning a knowingly incomplete answer to make a query faster is the wrong default to offer, and gating it on a cluster setting, a per-request flag and a response-format check made three moving parts that each had to survive the security plugin's transport-to-worker handoff (opensearch-project#5739, opensearch-project#5743, opensearch-project#5758). Removed: PartialResultAggregatePushdown and its hook in CalciteLogicalIndexScan, plugins.query.partial_result.on_mapping_conflict.enabled, the per-request partial_result field, and the warnings-supported format gate that existed only to protect this feature. A conflicted aggregation once again returns the complete result over every index, which since opensearch-project#5646 pushes down as a _source script rather than failing. Kept whole: the warnings channel it introduced -- Warning, QueryResponse.warnings, CalcitePlanContext.addWarning/drainWarnings, and the SimpleJsonResponseFormatter plumbing. Nothing produces a warning after this commit; opensearch-project#5807 is the next producer, reporting a search that covered only some of its shards. Note for reviewers: dropping partial_result from TransportPPLQueryRequest changes that request's wire format. The class version-gates nothing and the field was appended the same way in 3.9, so this is symmetric with how it arrived, but it does mean a mixed 3.9/3.10 cluster must not route PPL across versions. Signed-off-by: Kai Huang <[email protected]> * Drop the per-index mapping retention the feature needed getIndexMappings() on OpenSearchIndex and lastIndexMappings on the describe request existed only so the partitioner could see which index mapped a field which way. Nothing reads them now. The deep copy before merging stays: MergeRuleHelper rewrites the accumulated type's properties in place, so a fetched mapping would otherwise stop describing its own index. Its test now asserts that on the fetched mappings directly rather than through the removed accessor. Signed-off-by: Kai Huang <[email protected]> --------- Signed-off-by: Kai Huang <[email protected]> (cherry picked from commit 6d666ba) Signed-off-by: Kai Huang <[email protected]>
ahkcs
force-pushed
the
backport/backport-5814-to-3.9
branch
from
October 12, 2026 22:05
6a89958 to
56d9009
Compare
Contributor
|
Persistent review updated to latest commit 56d9009 |
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.
Description
Backport of #5814 to
3.9.3.9has the partial-result mode from #5657, so this removes it the same way it was removed onmain.The only conflict was a modify/delete on
CalcitePartialResultOnMappingConflictIT.java. #5814 deletes it, and3.9has an older copy without the #5779 changes. I resolved it by deleting the file. After rebasing onto3.9with #5862 merged,docs/user/admin/settings.rstalso conflicted: #5862 added the deserialization-settings section right after the partial-result section this PR removes. I kept the deserialization section and dropped the partial-result one, so the section list now matchesmain. Everything else cherry-picks cleanly.Verified on this branch:
spotlessCheck, unit tests forcommon,core,ppl,opensearchandopensearch-sql-plugin, and:integ-test:compileTestJava.Related Issues
Backport of #5814
Check List
--signoff.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.