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

public class ClearQueryHintsWithInvalidPropagationShuttle extends QueryHintsRelShuttle
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).

  • Constructor Details

    • ClearQueryHintsWithInvalidPropagationShuttle

      public ClearQueryHintsWithInvalidPropagationShuttle()
  • Method Details

    • doVisit

      protected org.apache.calcite.rel.RelNode doVisit(org.apache.calcite.rel.RelNode node)
      Specified by:
      doVisit in class QueryHintsRelShuttle