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] Rename does not work with nested fields #2740
What is the bug?
Rename does not work with nested fields. When I tried to rename a nested field, the renamed field would just have empty values. This is an example query that has issues:
Not sure if it relates to opensearch-project/OpenSearch#14355. @penghuo, how does the RenameOperator work in SQL engine? If the implementation relates to rename field processor, it might be the bug of OpenSearch Core.
This is no longer issue in latest Calcite engine enabled PPL query. PPL flatten nested fields per original design because of some historical decisions. We don't know the struct internal field schema. With workaround solutions, accessing struct fields are resolved by this PR: #4719.
Activity
[-][BUG] Rename does not work with backtick fields[/-][+][BUG] Rename does not work with nested fields[/+]LantaoJin commentedon Jun 14, 2024
Not sure if it relates to opensearch-project/OpenSearch#14355. @penghuo, how does the
RenameOperatorwork in SQL engine? If the implementation relates torename field processor, it might be the bug of OpenSearch Core.dblock commentedon Jul 1, 2024
[Catch All Triage - Attendees 1, 2, 3, 4, 5]
Fix projection/rename alias conflicts (opensearch-project#785, opense…
songkant-aws commentedon Apr 16, 2026
This is no longer issue in latest Calcite engine enabled PPL query. PPL flatten nested fields per original design because of some historical decisions. We don't know the struct internal field schema. With workaround solutions, accessing struct fields are resolved by this PR: #4719.