Skip to content

[ES|QL] STATS nested expressions - second part#175515

Merged
dej611 merged 8 commits intoelastic:mainfrom
dej611:fix/more-nested-stats-support
Jan 29, 2024
Merged

[ES|QL] STATS nested expressions - second part#175515
dej611 merged 8 commits intoelastic:mainfrom
dej611:fix/more-nested-stats-support

Conversation

@dej611
Copy link
Copy Markdown
Contributor

@dej611 dej611 commented Jan 25, 2024

Summary

This is the second part of #175288 where nested expressions are supported in STATS scope as well.
I've tweaked the previous test suite here to check all agg functions with nested expressions in various scenarios.

Checklist

@dej611 dej611 added Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// release_note:skip Skip the PR/issue when compiling release notes Feature:ES|QL ES|QL related features in Kibana v8.13.0 labels Jan 25, 2024
@dej611
Copy link
Copy Markdown
Contributor Author

dej611 commented Jan 25, 2024

/ci

@dej611
Copy link
Copy Markdown
Contributor Author

dej611 commented Jan 25, 2024

/ci

@dej611 dej611 marked this pull request as ready for review January 26, 2024 15:01
@dej611 dej611 requested a review from a team as a code owner January 26, 2024 15:01
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-visualizations (Team:Visualizations)

@stratoula
Copy link
Copy Markdown
Contributor

/ci

Copy link
Copy Markdown
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works great! LGTM! I think it would also make sense to suggest eval functions inside aggs (except from the fields) here too.

So for example

from logstash-* | stats meow =  avg(round(bytes))

typing ro here would suggest round etc...

Wdyt Marco?

@kibana-ci
Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
kbnUiSharedDeps-srcJs 2.9MB 2.9MB +166.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@dej611
Copy link
Copy Markdown
Contributor Author

dej611 commented Jan 29, 2024

Ok, I'll prepare a follow up with that.

@dej611 dej611 merged commit 1847cb8 into elastic:main Jan 29, 2024
@kibanamachine kibanamachine added the backport:skip This PR does not require backporting label Jan 29, 2024
@dej611 dej611 deleted the fix/more-nested-stats-support branch January 29, 2024 10:10
CoenWarmer pushed a commit to CoenWarmer/kibana that referenced this pull request Feb 15, 2024
## Summary

This is the second part of elastic#175288 where nested expressions are
supported in STATS scope as well.
I've tweaked the previous test suite here to check all agg functions
with nested expressions in various scenarios.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
fkanout pushed a commit to fkanout/kibana that referenced this pull request Mar 4, 2024
## Summary

This is the second part of elastic#175288 where nested expressions are
supported in STATS scope as well.
I've tweaked the previous test suite here to check all agg functions
with nested expressions in various scenarios.

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting Feature:ES|QL ES|QL related features in Kibana release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v8.13.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants