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] Add mv_sort #106095

Merged
merged 7 commits into from
Mar 13, 2024
Merged

[ES|QL] Add mv_sort #106095

merged 7 commits into from
Mar 13, 2024

Conversation

fang-xing-esql
Copy link
Member

mv_sort sorts a multivalued field in ascending or descending order. If an order is not specified, the default is in ascending order.

Copy link
Contributor

github-actions bot commented Mar 7, 2024

Documentation preview:

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

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

Copy link
Member

@nik9000 nik9000 left a comment

Choose a reason for hiding this comment

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

I left a few comments around testing and moving the order resolution. And maybe renaming a method. But it looks good!

@fang-xing-esql
Copy link
Member Author

I left a few comments around testing and moving the order resolution. And maybe renaming a method. But it looks good!

Thanks for reviewing, the input to sortToBlock that indicates the sort order is converted to a boolean, if there is a better way to do it, any suggestion is welcome!

Copy link
Member

@nik9000 nik9000 left a comment

Choose a reason for hiding this comment

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

I left a small thing about the stringtemplate stuff and medium sized thing around the boolean translation. I think there's a better way to do it. The way you are doing it I think is fairly confusing. I had a to read it a few times and I think it's possible it'll do unexpected things.

@fang-xing-esql
Copy link
Member Author

A subtask of #105322 .

Copy link
Member

@nik9000 nik9000 left a comment

Choose a reason for hiding this comment

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

I've left a couple of nice to haves. It's ready whenever you are ready to merge it and you can do any or none of the nice-to-haves.

@nik9000
Copy link
Member

nik9000 commented Mar 12, 2024

good luck with all the merges.

@fang-xing-esql
Copy link
Member Author

good luck with all the merges.

Thanks for reviewing Nik! All of the comments are addressed.

@fang-xing-esql fang-xing-esql merged commit e6d1c90 into elastic:main Mar 13, 2024
14 checks passed
@fang-xing-esql fang-xing-esql deleted the mv-sort branch March 25, 2024 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/ES|QL AKA ESQL >enhancement Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.14.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants