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

Remove Painless Type from e-nodes in favor of Java Class #28364

Merged
merged 3 commits into from
Jan 29, 2018

Conversation

jdconrad
Copy link
Contributor

This is the fourth part in a series to remove Painless Type. This replaces Painless Type with Java Class for all expression type nodes in Painless. This is a somewhat large change because the base node for all expression nodes is modified and can't really be broken up.

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

public static Class<?> TypeToClass (Type type) {
if (type.dynamic) {
public static Class<?> TypeToClass(Type type) {
if ("def".equals(type.struct.name)) {
Copy link
Member

Choose a reason for hiding this comment

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

Maybe use def.class.getShortName()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated for all of Definition.

@jdconrad
Copy link
Contributor Author

@rjernst Thanks for the review. Will commit as soon as CI completes.

@jdconrad jdconrad merged commit f13da9f into elastic:master Jan 29, 2018
@clintongormley clintongormley added :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache and removed :Plugin Lang Painless labels Feb 14, 2018
@jdconrad jdconrad mentioned this pull request May 31, 2018
23 tasks
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 v6.3.0 v7.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants