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
Issue with inline script using Joda DateTimeZone. #18017
Comments
Whether this fails or not depends on the order of requests, eg given this document:
If you run a non-scripting agg which refers to the time zone first:
then this request succeeds, and so do the scripting request:
If you reverse the order of the searches, then both fail. |
If you don't have an aggregation, there is currently no way to get timezones and work with scripts. Any ETA on fixing this? Any workaround that can be defined inside the script? I tried modifying the |
Modifying the |
Thanks for the quick answer @jasontedor . So there isn't a real workaround? Is it related to JodaOrg/joda-time#327? Until this is not fixed, one cannot do this operation? Is there something that we can do for this? Looks like the Joda Time issue has been opened for a while already. |
I opened JodaOrg/joda-time#375. When we can incorporate a new release of Joda Time that contains this into Elasticsearch we will be able to close this bug out. |
@jasontedor is this going to be added in a |
I don't know; we have to see if JodaOrg/joda-time#375 is accepted into Joda Time first, and if it is, the timeline under which a bug fix release of Joda Time is made that includes it that we can incorporate into Elasticsearch. |
Using the offical Elasticsearch Docker image for 2.3.1
Elasticsearch version: 2.3.1
JVM version: java:8-jre
OS version: debian jessie
Description of the problem including expected versus actual behavior:
Actual
Using DateTimeZone with an inline script results in an error.
Expected
The Correct DateTimeZone instance to be returned.
Steps to reproduce:
-Des.script.engine.groovy.inline.aggs=true
date_time_no_millis
field.Appendix: A
The datetime zone id 'America/New_York' is not recognised
Appendix: B
Appendix
A: Aggregate Query
B: Date Histogram Query
The text was updated successfully, but these errors were encountered: