forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QL: Preserve subfields for invalid types (elastic#100875)
In certain scenarios, a field can be mapped both as a primitive and object, causing it to be marked as unsupported, losing any potential subfields that might have been discovered before. This commit preserve them to avoid subfields from being incorrectly reported as missing. Fix elastic#100869
- Loading branch information
Showing
9 changed files
with
222 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pr: 100875 | ||
summary: Preserve subfields for unsupported types | ||
area: "Query Languages" | ||
type: bug | ||
issues: | ||
- 100869 |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
48 changes: 48 additions & 0 deletions
48
x-pack/plugin/ql/src/test/resources/fc-incompatible-object-compatible-subfields.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"indices": [ | ||
"index-1", | ||
"index-2" | ||
], | ||
"fields": { | ||
"file": { | ||
"keyword": { | ||
"type": "keyword", | ||
"metadata_field": false, | ||
"searchable": true, | ||
"aggregatable": true, | ||
"indices": [ | ||
"index-2" | ||
] | ||
}, | ||
"object": { | ||
"type": "object", | ||
"metadata_field": false, | ||
"searchable": false, | ||
"aggregatable": false, | ||
"indices": [ | ||
"index-1" | ||
] | ||
} | ||
}, | ||
"file.name": { | ||
"keyword": { | ||
"type": "keyword", | ||
"metadata_field": false, | ||
"searchable": true, | ||
"aggregatable": true, | ||
"indices": [ | ||
"index-1" | ||
] | ||
}, | ||
"unmapped": { | ||
"type": "unmapped", | ||
"metadata_field": false, | ||
"searchable": false, | ||
"aggregatable": false, | ||
"indices": [ | ||
"index-2" | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains 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