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
* ES|QL: shorten error messages for UnsupportedAttributes (elastic#111973)
When dealing with index patterns, eg. `FROM logs-*`, some fields can
have the same name but different types in different indices.
In this case we build an error message like
```
Cannot use field [multi_typed] due to ambiguities being mapped as [2] incompatible types:
[ip] in [test1, test2], [keyword] in [test3]"
```
With this PR, in case of many indices involved, we avoid listing them
all, but we only list three of them and provide information about how
many other indices are affected, eg.
```
Cannot use field [multi_typed] due to ambiguities being mapped as [2] incompatible types:
[ip] in [test1, test2, test3] and [2] other indices, [keyword] in [test6]
```
(see the `and [2] other indices`)
Since these error messages are stored in `UnspportedAttributes` and
serialized, this PR reduces significantly the size of a serialized
execution plan with many type conflicts.
Fixeselastic#111964
Related to elastic#111358
* Spotless
---------
Co-authored-by: Elastic Machine <[email protected]>
catch: '/Cannot use field \[name\] due to ambiguities being mapped as \[3\] incompatible types: \[integer\] in \[ambiguous_4, ambiguous_5, ambiguous_6\] and \[1\] other index, \[ip\] in \[ambiguous_10, ambiguous_11, ambiguous_12\] and \[2\] other indices, \[keyword\] in \[ambiguous_1, ambiguous_2, ambiguous_3\]/'
0 commit comments