public class NodeTypeHintPredicate extends Object implements org.apache.calcite.rel.hint.HintPredicate
A hint predicate that specifies which kind of relational expression the hint can be applied to.
Temporarily copy from calcite to cherry-pick [CALCITE-5107] and will be removed when upgrade the latest calcite.
Note: We need to copy to here from flink-table-planner for flink will use the NodeTypeHintPredicate to build HintStrategyTable. If we don't copy HintPredicates to here, it will use Calcite's HintPredicates to build HintStrategyTable with Hive dialect, which will then bring unexpected exception. Also can be removed when upgrade the latest calcite.
Constructor and Description |
---|
NodeTypeHintPredicate(org.apache.calcite.rel.hint.NodeTypeHintPredicate.NodeType nodeType) |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(org.apache.calcite.rel.hint.RelHint hint,
org.apache.calcite.rel.RelNode rel) |
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.