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

[ES|QL] Group by a function and reusing the column in another pipe is rendered as error while it is valid #177748

Closed
drewdaemon opened this issue Feb 23, 2024 · 3 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:ES|QL ES|QL related features in Kibana impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@drewdaemon
Copy link
Contributor

No description provided.

@drewdaemon drewdaemon added bug Fixes for quality problems that affect the customer experience Team:Visualizations Visualization editors, elastic-charts and infrastructure impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. Feature:ES|QL ES|QL related features in Kibana labels Feb 23, 2024
@drewdaemon drewdaemon changed the title Group by a function and reusing the column in another pipe is rendered as error while it is valid [ES|QL] Group by a function and reusing the column in another pipe is rendered as error while it is valid Feb 23, 2024
@drewdaemon drewdaemon self-assigned this Feb 23, 2024
@drewdaemon
Copy link
Contributor Author

@stratoula @dej611 can one of you help me with a more-specific reproduction?

I tried the following but it all works fine...

from kibana_sample_data_logs
| stats average = avg(bytes) by agent.keyword
| sort average

@stratoula
Copy link
Contributor

stratoula commented Feb 24, 2024

Hey! why did you create a new issue? I am tracking everything here #177699 so I am closing it in favor of the other. I was thinking of just referencing the main issue on the PRs (Part of ...). I am going to keep it open until 8.14 FF , I want to gather everything there for better visibility and I don't think we need extra issues for every case.

In your example you are not referencing the group by. Try something like this

from kibana_sample_data_logs
| stats average = avg(bytes) by abs(bytes)
| sort `abs(bytes)`

or the one I have on the main issue (in the gif)

@drewdaemon
Copy link
Contributor Author

why did you create a new issue?

I was trying out the pattern of having individual issues associated with each checklist item.

I was thinking of just referencing the main issue on the PRs

Sounds good to me! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:ES|QL ES|QL related features in Kibana impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

2 participants