Skip to content

Conversation

@nik9000
Copy link
Member

@nik9000 nik9000 commented Jun 8, 2020

The date_histogram aggregation had an optimization where it'd rewrite
time_zones who's offset from UTC is fixed across the entire index.
This rewrite is no longer needed after #56371 because we can tell that a
time zone is fixed lower down in the aggregation. So this removes it.

The `date_histogram` aggregation had an optimization where it'd rewrite
`time_zones` who's offset from UTC is fixed across the entire index.
This rewrite is no longer needed after elastic#56371 because we can tell that a
time zone is fixed lower down in the aggregation. So this removes it.
@elasticmachine
Copy link
Collaborator

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

@elasticmachine elasticmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Jun 8, 2020
@nik9000
Copy link
Member Author

nik9000 commented Jun 8, 2020

I'm benchmarking this now just to be sure it doesn't change performance. It shouldn't.

@nik9000
Copy link
Member Author

nik9000 commented Jun 8, 2020

I'm benchmarking this now just to be sure it doesn't change performance. It shouldn't.

The performance doesn't change with this PR.

Copy link
Member

@not-napoleon not-napoleon left a comment

Choose a reason for hiding this comment

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

LGTM. Love net negative code PRs :)

@polyfractal
Copy link
Contributor

image

@nik9000 nik9000 merged commit 69c7e73 into elastic:master Jul 1, 2020
nik9000 added a commit to nik9000/elasticsearch that referenced this pull request Jul 1, 2020
The `date_histogram` aggregation had an optimization where it'd rewrite
`time_zones` who's offset from UTC is fixed across the entire index.
This rewrite is no longer needed after elastic#56371 because we can tell that a
time zone is fixed lower down in the aggregation. So this removes it.
nik9000 added a commit that referenced this pull request Jul 1, 2020
The `date_histogram` aggregation had an optimization where it'd rewrite
`time_zones` who's offset from UTC is fixed across the entire index.
This rewrite is no longer needed after #56371 because we can tell that a
time zone is fixed lower down in the aggregation. So this removes it.
@nik9000
Copy link
Member Author

nik9000 commented Jul 1, 2020

Thanks for the review @not-napoleon! These were hard-fought negative lines, that is for sure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/Aggregations Aggregations >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v7.9.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants