Skip to content

[BUG] PPL query fails when using existing field name in as clause #3458

@ruanyl

Description

@ruanyl

What is the bug?
A PPL query fails to execute when using an existing field name after AS in the STATS command.

How can one reproduce the bug?

source=opensearch_dashboards_sample_data_logs | stats count() as request by `machine.os`

request is an existing field of opensearch_dashboards_sample_data_logs

What is the expected behavior?
The query should execute successfully and rename the count aggregation to request

Metadata

Metadata

Assignees

Labels

PPLPiped processing languagebugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions