Skip to content

Drop rewriting in date_histogram #57836

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 2 commits into from
Jul 1, 2020
Merged

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