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
SQL: Don't serialize ZonedDateTime value directly in scripts #39877
Labels
Comments
Pinging @elastic/es-search |
costin
added a commit
to costin/elasticsearch
that referenced
this issue
Mar 11, 2019
Painless allows ZonedDateTime objects to be passed natively to scripts which creates problematic translate queries as the ZonedDateTime is passed as a string instead. Wrap this with a dedicated method to perform the conversion. Fix elastic#39877
costin
added a commit
to costin/elasticsearch
that referenced
this issue
Mar 11, 2019
Painless allows ZonedDateTime objects to be passed natively to scripts which creates problematic translate queries as the ZonedDateTime is passed as a string instead. Wrap this with a dedicated method to perform the conversion. Fix elastic#39877
costin
added a commit
that referenced
this issue
Mar 11, 2019
Painless allows ZonedDateTime objects to be passed natively to scripts which creates problematic translate queries as the ZonedDateTime is passed as a string instead. Wrap this with a dedicated method to perform the conversion. Fix #39877
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
While Painless scripts do accept
ZonedDateTime
objects, serializing this into scripts (for example through the translate API) doesn't work since they get rendered as strings instead of actual objects.As such, we should wrap them in dedicated methods to construct the runtime
ZonedDateTime
from primitives (such as strings).The text was updated successfully, but these errors were encountered: