Skip to content

Conversation

@talevy
Copy link
Contributor

@talevy talevy commented Feb 22, 2021

The geo_line aggregation incorrectly handled results with missing values. Tests to verify this
behavior were incorrectly checking results. This commit resolves these in three ways

  • explicitly testing missing sort field values
  • explicitly testing handling missing point field values
  • explicitly testing handling mixed scenarios where some documents have one and not the other, or missing both.

Fixes elastic/kibana#90653.

Fixes #69346.

The geo_line aggregation incorrectly handled results with missing values. Tests to verify this
behavior were incorrectly checking results. This commit resolves these in three ways

- explicitely testing  missing sort field values
- explicitely testing handling missing point field values
- explicitely testing handling mixed scenarios where some documents have one and not the other, or missing both.

Fixes elastic/kibana#90653.

Fixes elastic#69346.
@talevy talevy added :Analytics/Geo Indexing, search aggregations of geo points and shapes :Analytics/Aggregations Aggregations v8.0.0 v7.13.0 v7.12.1 labels Feb 22, 2021
@elasticmachine elasticmachine added Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) labels Feb 22, 2021
@elasticmachine
Copy link
Collaborator

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

1 similar comment
@elasticmachine
Copy link
Collaborator

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

@talevy talevy merged commit cc776be into elastic:master Feb 23, 2021
@talevy talevy deleted the fix-geoline branch February 23, 2021 20:29
talevy added a commit that referenced this pull request Feb 23, 2021
The geo_line aggregation incorrectly handled results with missing values. Tests to verify this
behavior were incorrectly checking results. This commit resolves these in three ways

- explicitly testing  missing sort field values
- explicitly testing handling missing point field values
- explicitly testing handling mixed scenarios where some documents have one and not the other, or missing both.

Fixes elastic/kibana#90653.

Fixes #69346.
talevy added a commit that referenced this pull request Feb 23, 2021
The geo_line aggregation incorrectly handled results with missing values. Tests to verify this
behavior were incorrectly checking results. This commit resolves these in three ways

- explicitly testing  missing sort field values
- explicitly testing handling missing point field values
- explicitly testing handling mixed scenarios where some documents have one and not the other, or missing both.

Fixes elastic/kibana#90653.

Fixes #69346.
@gwbrown gwbrown removed the :Analytics/Aggregations Aggregations label Apr 14, 2021
@andrewkcarter
Copy link

Hi @talevy, we're encountering what appears to be the issue this PR fixes, and we're running 7.12.1. Was this fix actually applied to 7.12.1? I see the label for 7.12.1 on this issue, but wanted to confirm.

@imotov
Copy link
Contributor

imotov commented Jul 23, 2021

@andrewkcarter It looks like it actually made it to 7.12.0 and 7.12.1. I cannot reproduce the issue with reproduction in #69346 in neither. Would you mind sharing more information about the issue that you are seeing, preferably with updated reproduction script that fails in 7.12.1?

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.12.1 v7.13.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

geo_line aggregation handles missing fields poorly [Maps] (Tracks layer) - Automatically handle missing locations

7 participants