[9.3] Fix NPE when querying pattern_text field#143113
Merged
parkertimmins merged 1 commit intoelastic:9.3from Feb 26, 2026
Merged
[9.3] Fix NPE when querying pattern_text field#143113parkertimmins merged 1 commit intoelastic:9.3from
parkertimmins merged 1 commit intoelastic:9.3from
Conversation
Targeted backport of elastic#142767 to 9.3. Fixes three bugs: 1. Empty segment NPE when PatternTextCompositeValues.from() returns null in valueFetcher and PatternTextIndexFieldData. 2. Disabled templating NPE where valueFetcher and PatternTextIndexFieldData called CompositeValues.from() which always returns null without template_id values. 3. BytesRef hex output in getValueFetcherProvider where SourceIntervalsSource received raw BytesRef instead of String, causing intervals queries to never match.
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.
Targeted backport of #142767 to 9.3. Fixes three bugs:
#142767 was built on top of the changes from #140191, #140939, and #142051. Since these were not backported, a single backport of #142767 onto 9.3 would be difficult. For this reason, I chose to make the same bug fixes from #142767 directly on 9.3 (without the other refactors).