-
Notifications
You must be signed in to change notification settings - Fork 25.6k
ES|QL: fix validation of SORT by aggregate functions #117316
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: fix validation of SORT by aggregate functions #117316
Conversation
Documentation preview: |
Pinging @elastic/es-analytical-engine (Team:Analytics) |
Hi @luigidellaquila, I've created a changelog YAML for you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Luigi! Only a minor remark, but this looks good!
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/analysis/Verifier.java
Outdated
Show resolved
Hide resolved
💔 Backport failed
You can use sqren/backport to manually backport by running |
SORT <expression>
is translated toEVAL x = <expression> | SORT x
.If the expression contains aggregate functions, it should fail validation (and now it does).
Fixes: #117314