-
Notifications
You must be signed in to change notification settings - Fork 25.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Synthetic _source can't be retrieved with overlapping keys in flattened field #122936
Comments
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
When i test this locally i get this as
|
What is the commit you are testing with? |
We don't know if a field inside flattened object was "flat" (with dots in the name) or not. We only see the name and have to assume it was an object structure. This is what is produced as synthetic source before it fails/transforms somewhere later. It does not really make sense.
Is this something you need to rely on? IMO the best we can do now is to document this as not supported. I don't see an easy way to fix this and it is not obvious (at least to me) if this needs to be supported at all. |
This is the version I'm using:
I'm running it as part of the Kibana dev setup (not sure whether that matters)
I don't have a use case for this right now, it's OK for me if not supported. IMHO we shouldn't throw on this, but maybe that's something that already works and my local version is just a little stale. I could imagine fixing this by detecting the case and flattening fields out only if necessary. But as mentioned, probably not worth it. |
Elasticsearch Version
main
Installed Plugins
No response
Java Version
bundled
OS Version
macOS 15.3
Problem Description
When using flattened fields in a logsdb index, synthetic source is used to reconstruct the value of the flattened field. In case the key/value pairs in the flattened field have an object/scalar mismatch, the search request fails because the _source can't be constructed.
Steps to Reproduce
Logs (if relevant)
The text was updated successfully, but these errors were encountered: