Skip to content

Fixes GeoLineAggregator bugs #65521

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

Merged
merged 7 commits into from
Dec 2, 2020
Merged

Fixes GeoLineAggregator bugs #65521

merged 7 commits into from
Dec 2, 2020

Conversation

talevy
Copy link
Contributor

@talevy talevy commented Nov 25, 2020

This commit unmutes and fixes tests around some GeoLineAggregator edge
cases.

  • MergedGeoLines had a silly bug where it was accepting InternalGeoLines
    that were empty
  • "complete" is measured by the heap-mode of the BucketedSort, which is a problem
    since if the length of the data equals the max-size, then it is difficult to know
    whether any values were discarded.
  • GeoLineBucketSort had an array-resizing bug s/>/>=

Fixes #65473.

This commit unmutes and fixes tests around some GeoLineAggregator edge
cases.

- MergedGeoLines had a silly bug where it was accepting InternalGeoLines
  that were empty
- "complete" is measured by the heap-mode of the BucketedSort, which is a problem
  since if the length of the data equals the max-size, then it is difficult to know
  whether any values were discarded.
- GeoLineBucketSort had an array-resizing bug s/>/>=

Fixes elastic#65473.
@talevy talevy added >bug :Analytics/Geo Indexing, search aggregations of geo points and shapes v8.0.0 Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v7.11.0 labels Nov 25, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (Team:Analytics)

@talevy talevy requested a review from iverase December 2, 2020 00:55
Copy link
Contributor

@iverase iverase left a comment

Choose a reason for hiding this comment

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

lgtm.

@talevy talevy merged commit e4e8905 into elastic:master Dec 2, 2020
@talevy talevy deleted the geoline-fix branch December 2, 2020 17:33
talevy added a commit that referenced this pull request Dec 2, 2020
This commit unmutes and fixes tests around some GeoLineAggregator edge
cases.

- MergedGeoLines had a silly bug where it was accepting InternalGeoLines
  that were empty
- "complete" is measured by the heap-mode of the BucketedSort, which is a problem
  since if the length of the data equals the max-size, then it is difficult to know
  whether any values were discarded.
- GeoLineBucketSort had an array-resizing bug s/>/>=

Fixes #65473.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/Geo Indexing, search aggregations of geo points and shapes >bug Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v7.11.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GeoLineAggregator test failures
4 participants