-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define an ExpressionTransform trait (#530)
## What changes are proposed in this pull request? Similar to the existing `SchemaTransform` trait, an `ExpressionTransform` trait can make it a lot easier to recursively manipulate expressions. Define the trait and introduce an expression depth checker to test it. ### This PR affects the following public APIs Because enum tuple variants cannot be passed as function arguments, we factor out `UnaryExpression`, `BinaryExpression` and `VariadicExpression` structs which the corresponding expression variants can then use. This requires updating match arms throughout the code base. ## How was this change tested? New unit test.
- Loading branch information
Showing
6 changed files
with
434 additions
and
59 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
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.