Class ClearQueryHintsWithInvalidPropagationShuttle
java.lang.Object
org.apache.calcite.rel.RelShuttleImpl
org.apache.flink.table.planner.hint.QueryHintsRelShuttle
org.apache.flink.table.planner.hint.ClearQueryHintsWithInvalidPropagationShuttle
- All Implemented Interfaces:
org.apache.calcite.rel.RelShuttle
Due to Calcite will expand the whole SQL RelNode tree that contains query block, query hints
(including join hints and state ttl hints) will be propagated from root to leaves in the whole
RelNode tree. This shuttle is used to clear the query hints that are propagated into the query
block incorrectly.
See more at SqlToRelConverter.convertFrom(SqlToRelConverter.Blackboard, SqlNode, List).
-
Field Summary
Fields inherited from class org.apache.calcite.rel.RelShuttleImpl
stack -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.calcite.rel.RelNodedoVisit(org.apache.calcite.rel.RelNode node) Methods inherited from class org.apache.flink.table.planner.hint.QueryHintsRelShuttle
visit, visit, visit, visit, visitMethods inherited from class org.apache.calcite.rel.RelShuttleImpl
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitChild, visitChildren
-
Constructor Details
-
ClearQueryHintsWithInvalidPropagationShuttle
public ClearQueryHintsWithInvalidPropagationShuttle()
-
-
Method Details
-
doVisit
protected org.apache.calcite.rel.RelNode doVisit(org.apache.calcite.rel.RelNode node) - Specified by:
doVisitin classQueryHintsRelShuttle
-