You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Backporting two union-types fixes to 8.15 (from 111932 and 112610) (elastic#112821)
* Fix union-types where one index is missing the field (elastic#111932)
* Fix union-types where one index is missing the field
When none of the indexes has the field, a validation error is correctly thrown, and when all indexes have the field, union-types works as normal.
But when some indexes have the field and some do not, we were getting and internal error.
We treat this case similarly to when some documents are missing the field, in which case `null` values are produced.
So now a multi-index query where some indexes are missing the field will produce nulls for the documents coming from those indexes.
* Update docs/changelog/111932.yaml
* Added capability for this fix (missing-field)
* Support widening of numeric types in union-types (elastic#112610)
* Support widening of numeric types in union-types
Only two lines of this PR are the actual fix.
All the rest is updating the CSV-spec testing infrastructure to make it easier to test this, and adding the tests.
The refactoring involve some cleanup and simplifications also.
This update allows us to add alternative mappings of existing data files without copying the files and changing the header line.
Some of the existing union-types test files were deleted as a result, which is a step in the right direction.
* Update docs/changelog/112610.yaml
* Link capability to PR
0 commit comments