Fix bug 94733 geo_line not respecting sort_order#94734
Fix bug 94733 geo_line not respecting sort_order#94734craigtaverner merged 6 commits intoelastic:mainfrom
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 |
Fixes bug where
geo_linedid not supportsort_order, silently ignoring theDESCoption.The documentation for
geo_lineclaims that the optionsort_ordercan be eitherASC(default) orDESC:However, when testing this, no matter which you choose the actual order of points in the result is always
ASCby the value of thesortfield.Fixes #94733