Skip to content
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

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

Open
ruanyl opened this issue Mar 21, 2025 · 0 comments
Open

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

ruanyl opened this issue Mar 21, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@ruanyl
Copy link
Member

ruanyl commented Mar 21, 2025

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

@ruanyl ruanyl added bug Something isn't working untriaged labels Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants