-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Elasticsearch 7 reports a different key_as_string for dayOfWeek for date_histogram aggs than Elasticsearch 6 did #43275
Comments
Pinging @elastic/es-analytics-geo |
This reproduces for me. It looks like Joda (and hence Elasticsearch ≤6) maps Monday to |
Pinging @elastic/es-core-infra |
While this is definitely fixable, I think we might be past the point of reversing a breaking, and introducing a breaking change in and of itself. I'll mark this for discussion. |
Seems not many people are using it in the first place if it went unnoticed for such a long time. Also I would expect that most large deployments did not start upgrades to 7 yet, so the majority of affected users might not even have started to look at 7.x. We are running a number of clusters and are upgrading gradually across them, so having to distinguish between v6 and v7 for this would be fairly painful on the client side. |
relates #42588 |
Introducing a IsoLocal.ROOT constant which should be used instead of java.util.Locale.ROOT in ES when dealing with dates. IsoLocal.ROOT customises start of the week to be Monday instead of Sunday. closes elastic#42588 an issue with investigation details relates elastic#41670 bug raised (this won't fix it on its own. joda.parseInto has to be reimplemented closes elastic#43275 an issue raised by community member
Introducing a IsoLocal.ROOT constant which should be used instead of java.util.Locale.ROOT in ES when dealing with dates. IsoLocal.ROOT customises start of the week to be Monday instead of Sunday. closes elastic#42588 an issue with investigation details relates elastic#41670 bug raised (this won't fix it on its own. joda.parseInto has to be reimplemented closes elastic#43275 an issue raised by community member change skip reason compile error not orking spi working unit test cleanup change providers for 9+ revert changes IsoLocale cleanup move spi files to server make unit test pass from gradle expermienting with gradle tasks uncomment jar hell check only add settings in buildplugin allign options for locale providers
Elasticsearch version (
bin/elasticsearch --version
): 6.7.2 and 7.1.1Plugins installed: []
JVM version (
java -version
): Java HotSpot(TM) 64-Bit Server VM/11.0.1/11.0.1+13-LTSOS version (
uname -a
if on a Unix-like system): Windows 10Description of the problem including expected versus actual behavior:
We are looking at upgrading from Elasticsearch 6.x to 7.x and one of our tests related to day-of-week in date-histogramm aggregations is failing. When investigating a bit more we found that there is actually a different response for the "key_as_string" for buckets of a date_histogramm aggregation which aggregates on "day of week" in Elasticsearch 7 compared to Elasticsearch 6.
I could not find any "breaking change" mentioned for this, so I believe this may be an unintended side-effect of switching from Joda Time to Java DateTime API (https://www.elastic.co/guide/en/elasticsearch/reference/7.0/breaking-changes-7.0.html#breaking_70_java_time_changes)?
Steps to reproduce:
On Elasticsearch 6.7.2 this returns:
however on Elasticsearch 7.1.1 is returns (note the difference in "key_as_string":
Provide logs (if relevant):
The text was updated successfully, but these errors were encountered: