forked from opensearch-project/opensearch-spark
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor
CatalystQueryPlanVisitor
into distinct Plan & Expression v…
…isitors (opensearch-project#852) * We would like to refactor the CatalystQueryPlanVisitor and separate it into two distinct visitors: Plan Visitor ( which extends AbstractNodeVisitor<LogicalPlan, CatalystPlanContext> ) Expression Visitor (which extends AbstractNodeVisitor<Expression, CatalystPlanContext>) This would match the existing PPL AST visitors composition: AstBuilder ( which extends OpenSearchPPLParserBaseVisitor) AstExpressionBuilder ( which extends OpenSearchPPLParserBaseVisitor ) In addition unify the ppl utils classes to match one of the following naming: *Transformer - transforms PPL (logical) expressions into Spark (logical) expressions *Utils - utility class Signed-off-by: YANGDB <[email protected]> * update the AstBuilder ctor Signed-off-by: YANGDB <[email protected]> * resolve latest merge conflicts Signed-off-by: YANGDB <[email protected]> --------- Signed-off-by: YANGDB <[email protected]>
- Loading branch information
Showing
11 changed files
with
463 additions
and
387 deletions.
There are no files selected for viewing
432 changes: 432 additions & 0 deletions
432
ppl-spark-integration/src/main/java/org/opensearch/sql/ppl/CatalystExpressionVisitor.java
Large diffs are not rendered by default.
Oops, something went wrong.
358 changes: 7 additions & 351 deletions
358
ppl-spark-integration/src/main/java/org/opensearch/sql/ppl/CatalystQueryPlanVisitor.java
Large diffs are not rendered by default.
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
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
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