|
19 | 19 |
|
20 | 20 | import static org.apache.calcite.rel.hint.HintPredicates.AGGREGATE; |
21 | 21 | import static org.apache.calcite.rel.hint.HintPredicates.JOIN; |
| 22 | +import static org.apache.calcite.rel.hint.HintPredicates.TABLE_SCAN; |
22 | 23 | import static org.apache.ignite.internal.sql.engine.prepare.PlanningContext.CLUSTER; |
23 | 24 | import static org.apache.ignite.internal.util.CollectionUtils.nullOrEmpty; |
24 | 25 | import static org.apache.ignite.lang.ErrorGroups.Common.INTERNAL_ERR; |
|
93 | 94 | import org.apache.ignite.internal.sql.engine.prepare.IgniteTypeCoercion; |
94 | 95 | import org.apache.ignite.internal.sql.engine.prepare.PlanningContext; |
95 | 96 | import org.apache.ignite.internal.sql.engine.rel.IgniteProject; |
96 | | -import org.apache.ignite.internal.sql.engine.rel.logical.IgniteLogicalTableScan; |
97 | 97 | import org.apache.ignite.internal.sql.engine.sql.IgniteSqlCommitTransaction; |
98 | 98 | import org.apache.ignite.internal.sql.engine.sql.IgniteSqlConformance; |
99 | 99 | import org.apache.ignite.internal.sql.engine.sql.IgniteSqlKill; |
@@ -164,8 +164,8 @@ public final class Commons { |
164 | 164 | .hintStrategy(IgniteHint.ENFORCE_JOIN_ORDER.name(), JOIN) |
165 | 165 | .hintStrategy(IgniteHint.DISABLE_RULE.name(), (hint, rel) -> true) |
166 | 166 | .hintStrategy(IgniteHint.EXPAND_DISTINCT_AGG.name(), AGGREGATE) |
167 | | - .hintStrategy(IgniteHint.NO_INDEX.name(), (hint, rel) -> rel instanceof IgniteLogicalTableScan) |
168 | | - .hintStrategy(IgniteHint.FORCE_INDEX.name(), (hint, rel) -> rel instanceof IgniteLogicalTableScan) |
| 167 | + .hintStrategy(IgniteHint.NO_INDEX.name(), TABLE_SCAN) |
| 168 | + .hintStrategy(IgniteHint.FORCE_INDEX.name(), TABLE_SCAN) |
169 | 169 | .hintStrategy(IgniteHint.DISABLE_DECORRELATION.name(), (hint, rel) -> true) |
170 | 170 | .build() |
171 | 171 | ) |
|
0 commit comments