Skip to content

Conversation

@jdconrad
Copy link
Contributor

@jdconrad jdconrad commented Mar 6, 2019

This fix allows def [char] to be explicitly cast to String and def [String] to be explicitly cast to char as per our spec documentation. This also adds appropriate tests and cleans up some of the error messages for def casting.

@jdconrad jdconrad added >bug >test Issues or PRs that are addressing/adding tests :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache v8.0.0 v7.2.0 labels Mar 6, 2019
@jdconrad jdconrad requested a review from rjernst March 6, 2019 18:15
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@jdconrad jdconrad changed the title Fixes Painless def [char] to String casts Fix Painless def [char] to String casts Mar 6, 2019
@jdconrad
Copy link
Contributor Author

jdconrad commented Mar 6, 2019

@elasticmachine run elasticsearch-ci/1

@jdconrad
Copy link
Contributor Author

jdconrad commented Mar 6, 2019

@elasticmachine run elasticsearch-ci/bwc

@jdconrad
Copy link
Contributor Author

jdconrad commented Mar 6, 2019

@elasticmachine run elasticsearch-ci/default-distro

1 similar comment
@jdconrad
Copy link
Contributor Author

jdconrad commented Mar 7, 2019

@elasticmachine run elasticsearch-ci/default-distro

Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jdconrad jdconrad merged commit d8416fc into elastic:master Mar 11, 2019
@jdconrad
Copy link
Contributor Author

@rjernst Thanks for the review!

jdconrad added a commit that referenced this pull request Mar 11, 2019
* Start to fix def char casts.

* Fix def char to String casts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >test Issues or PRs that are addressing/adding tests v7.2.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants