-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Downsampling supports date_histogram with tz #103511
Conversation
This comes with caveats, for downsampled indexes at intervals more than 15 minutes. For instance, - 1-hour downsampling will produce inaccurate results for 1-hour histograms on timezones shifted by XX:30 - 1-day downsampling will produce inaccurate daily histograms for not-UTC timezones as it tracks days at UTC. Related to elastic#101309
Hi @kkrik-es, I've created a changelog YAML for you. |
@elasticsearchmachine run elasticsearch-ci/part-4 |
Pinging @elastic/es-analytics-geo (Team:Analytics) |
Hi @kkrik-es, I've updated the changelog YAML for you. |
@martijnvg this has been updated to offset buckets and tag responses when this happens. Ptal. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a couple of comments, but looks good.
.../org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregationBuilder.java
Show resolved
Hide resolved
.../org/elasticsearch/search/aggregations/bucket/histogram/DateHistogramAggregationBuilder.java
Show resolved
Hide resolved
...n/downsample/src/main/java/org/elasticsearch/xpack/downsample/TransportDownsampleAction.java
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/cluster/metadata/IndexMetadata.java
Outdated
Show resolved
Hide resolved
...ample/qa/rest/src/yamlRestTest/resources/rest-api-spec/test/downsample/30_date_histogram.yml
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
💔 Backport failed
You can use sqren/backport to manually backport by running |
* Downsampling supports date_histogram with tz This comes with caveats, for downsampled indexes at intervals more than 15 minutes. For instance, - 1-hour downsampling will produce inaccurate results for 1-hour histograms on timezones shifted by XX:30 - 1-day downsampling will produce inaccurate daily histograms for not-UTC timezones as it tracks days at UTC. Related to elastic#101309 * Update docs/changelog/103511.yaml * test daylight savings * update documentation * Offset time buckets over downsampled data with TZ * Update docs/changelog/103511.yaml * check for TSDS * fixme for transport version * add interval to index metadata * add transport version * bump up transport version * address feedbcak * spotless fix
* Downsampling supports date_histogram with tz This comes with caveats, for downsampled indexes at intervals more than 15 minutes. For instance, - 1-hour downsampling will produce inaccurate results for 1-hour histograms on timezones shifted by XX:30 - 1-day downsampling will produce inaccurate daily histograms for not-UTC timezones as it tracks days at UTC. Related to elastic#101309 * Update docs/changelog/103511.yaml * test daylight savings * update documentation * Offset time buckets over downsampled data with TZ * Update docs/changelog/103511.yaml * check for TSDS * fixme for transport version * add interval to index metadata * add transport version * bump up transport version * address feedbcak * spotless fix
This comes with caveats, for downsampled indexes at intervals more than 15 minutes. For instance,
For more details, see Option 4 in Downsampling and timezones doc.
Fixes #101309