Skip to content

[BUG] Rename does not work with nested fields #2740

Open
@lezzago

Description

@lezzago

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:

source=otel-metrics-2024.05| rename `attributes.resource.attributes.service@name` as ServiceName | dedup ServiceName | fields ServiceName

How can one reproduce the bug?
Make a similar query to the one below that renames a nested field

source=otel-metrics-2024.05| rename `attributes.resource.attributes.service@name` as ServiceName | fields ServiceName

What is the expected behavior?
The values from the renamed field should not be empty

What is your host/environment?

  • OS: AWS OpenSearch 2.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcatch-all acknowledgedMarks issues caught in catch-all triage for searchability

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions