-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Fix bug 94733 geo_line not respecting sort_order #94734
Fix bug 94733 geo_line not respecting sort_order #94734
Conversation
The original geo_line PR included two yaml test files, one of which was never used. This commit moves that test into the correct place, and fixes a syntax error in the test.
The code was re-sorting to ASC explicitly in the reduce phase. No explanation was given. Removing this extra sort causes the new yaml test to pass. Two failing java tests were fixed by no longer explicitly expected ASC data when order was DESC.
Pinging @elastic/es-analytics-geo (Team:Analytics) |
Hi @craigtaverner, I've created a changelog YAML for you. |
@elasticmachine run elasticsearch-ci/docs |
The original PR that created
See #41612 |
I've found the commit that added the final sort. It has the commit message:
baaea0e#diff-cc94b6c97b605e29bde7bb31a0d4af9b1a368818e7261c48a34590c93195ee8e My suspicion is that when implementing the |
The kibana team feel that this was not done for Kibana reasons. The most likely remaining reason was that it was something done during the work on |
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.
LGTM
Fixes bug where
geo_line
did not supportsort_order
, silently ignoring theDESC
option.The documentation for
geo_line
claims that the optionsort_order
can be eitherASC
(default) orDESC
:However, when testing this, no matter which you choose the actual order of points in the result is always
ASC
by the value of thesort
field.Fixes #94733