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

Merge analyze and write phases in Painless "user" tree #53685

Merged
merged 44 commits into from
Mar 23, 2020

Conversation

jdconrad
Copy link
Contributor

This is the next step in producing immutable state in the Painless "user" tree. This combines the analyze phase and the write phase so that both semantic checking and the ir tree are generated in the same phase. This allows the removal of the Input/Output objects created in the previous PRs from being mutable state on the nodes. Instead they are now local state for the analyze phase.

Relates: #53561
Relates: #49869

@jdconrad jdconrad added :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >refactoring v8.0.0 labels Mar 17, 2020
@jdconrad jdconrad requested review from rjernst and stu-elastic March 17, 2020 17:31
@elasticmachine
Copy link
Collaborator

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

@jdconrad
Copy link
Contributor Author

@elasticmachine test elasticsearch-ci/default-distro

private int radix;

protected Object constant;
protected final String value;
Copy link
Contributor

Choose a reason for hiding this comment

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

If these aren't going to be the extension point, no need to change visibility.

Copy link
Contributor Author

@jdconrad jdconrad Mar 23, 2020

Choose a reason for hiding this comment

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

If it's all right I would like to leave this for now as extending the nodes is currently the only way to do an extension point in the user tree. As other design ideas are explored, it seems more appropriate to modify them then.

Edit: especially, as a better design is not a guarantee right now

@jdconrad
Copy link
Contributor Author

@stu-elastic Thanks for the review. I've responded to all PR comments, so I think this is ready for the next round.

Copy link
Contributor

@stu-elastic stu-elastic left a comment

Choose a reason for hiding this comment

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

Looking good.

@jdconrad
Copy link
Contributor Author

@stu-elastic Thanks again. Will merge as soon as CI passes.

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 >refactoring v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants