Skip to content
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

Painless: improve error message on non-constant #68517

Merged
merged 2 commits into from
Feb 4, 2021

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Feb 4, 2021

As of #68088 painless can have methods where all parameters must be
constant. This improves the error message when the parameter isn't. It's
still not super great, but its better and its what we can easily give
at that point in the compiler.

@nik9000 nik9000 added >non-issue :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache v8.0.0 v7.12.0 labels Feb 4, 2021
@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Feb 4, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@nik9000
Copy link
Member Author

nik9000 commented Feb 4, 2021

Marked >non-issue because its an improvement on unreleased code.

As of elastic#68088 painless can have methods where all parameters must be
constant. This improves the error message when the parameter isn't. It's
still not super great, but its better and its what we can easilly give
at that point in the compiler.
Copy link
Contributor

@jdconrad jdconrad left a comment

Choose a reason for hiding this comment

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

LGTM!

@nik9000 nik9000 merged commit a48a489 into elastic:master Feb 4, 2021
nik9000 added a commit to nik9000/elasticsearch that referenced this pull request Feb 4, 2021
As of elastic#68088 painless can have methods where all parameters must be
constant. This improves the error message when the parameter isn't. It's
still not super great, but its better and its what we can easilly give
at that point in the compiler.
nik9000 added a commit that referenced this pull request Feb 4, 2021
As of #68088 painless can have methods where all parameters must be
constant. This improves the error message when the parameter isn't. It's
still not super great, but its better and its what we can easilly give
at that point in the compiler.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >non-issue Team:Core/Infra Meta label for core/infra team v7.12.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants