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
{{ message }}
Repository navigation
[BUG] Duplicate fields returned when disable_objects set #5746
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
This causes fields to be duplicated in the Opensearch Dashboards Explore Logs app:
Interestingly, there is no attributes.logtag in that screenshot, which suggests the bug only presents itself when there are multiple layers of nesting.
Reproduced on 3.9.0-SNAPSHOT. Root cause is the field dedup check,
With disable_objects: true, OpenSearch doesn't expand the dotted key into intermediate object mappers — the mapping holds one leaf literally named log.file.path. So flattening yields {attributes, attributes.log.file.path} with no attributes.log / attributes.log.file in between.
tryToRemoveNestedFields (CalciteRelNodeVisitor.java:665) drops a field only when the prefix up to the last dot is also a field. attributes.log.file isn't, so the leaf survives next to the struct. attributes.logtag is dropped correctly — hence only multi-dot keys duplicate.
Activity
penghuo commentedon Sep 8, 2026
@tronboto Thanks for reporting the issue.
Reproduced on 3.9.0-SNAPSHOT. Root cause is the field dedup check,
With disable_objects: true, OpenSearch doesn't expand the dotted key into intermediate object mappers — the mapping holds one leaf literally named log.file.path. So flattening yields {attributes, attributes.log.file.path} with no attributes.log / attributes.log.file in between.
tryToRemoveNestedFields (CalciteRelNodeVisitor.java:665) drops a field only when the prefix up to the last dot is also a field. attributes.log.file isn't, so the leaf survives next to the struct. attributes.logtag is dropped correctly — hence only multi-dot keys duplicate.
tronboto commentedon Oct 5, 2026
Hey @penghuo . I see you closed your original PR for this. Any update on the new approach? It would be great to get this fixed for the next release.
tronboto commentedon Nov 5, 2026
Another side effect here is that you end up with many many null value fields: