-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove ScriptClassInfo from Walker (#60316)
This change covers two items: * This removes ScriptClassInfo from Walker so that we can separate semantic checking from user tree building entirely. ScriptClassInfo is added to a PainlessSemanticAnalysisPhase and a PainlessSemanticHeaderPhase which both extend from their respective Default classes. These classes allow for the special casing of the execute method where ScriptClassInfo is used to inject the appropriate parameters for the execute method. This allows us to potentially check and use a script across more than one context which is especially relevant for stored scripts. * This removes the BootstrapInjectionPhase and the ScriptInjectionPhase instead moving the code more appropriately to the other phases instead.
- Loading branch information
Showing
10 changed files
with
507 additions
and
383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
218 changes: 0 additions & 218 deletions
218
...es/lang-painless/src/main/java/org/elasticsearch/painless/DefBootstrapInjectionPhase.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.