Skip to content

Conversation

luigidellaquila
Copy link
Contributor

SORT <expression> is translated to EVAL x = <expression> | SORT x.

If the expression contains aggregate functions, it should fail validation (and now it does).

Fixes: #117314

@luigidellaquila luigidellaquila added >bug auto-backport Automatically create backport pull requests when merged :Analytics/ES|QL AKA ESQL v9.0.0 v8.17.0 v8.16.2 v8.18.0 labels Nov 22, 2024
Copy link
Contributor

Documentation preview:

@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Nov 22, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@elasticsearchmachine
Copy link
Collaborator

Hi @luigidellaquila, I've created a changelog YAML for you.

Copy link
Contributor

@alex-spies alex-spies left a 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!

@luigidellaquila luigidellaquila merged commit a1247b3 into elastic:main Nov 22, 2024
16 checks passed
luigidellaquila added a commit to luigidellaquila/elasticsearch that referenced this pull request Nov 22, 2024
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
8.17
8.16 Commit could not be cherrypicked due to conflicts
8.x

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 117316

smalyshev pushed a commit to smalyshev/elasticsearch that referenced this pull request Nov 22, 2024
alexey-ivanov-es pushed a commit to alexey-ivanov-es/elasticsearch that referenced this pull request Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL auto-backport Automatically create backport pull requests when merged backport pending >bug Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.16.2 v8.17.0 v8.18.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ES|QL: SORT by aggregate function passes validation but fails at runtime

3 participants