Skip to content

Commit ce22173

Browse files
committed
Minor
1 parent ca9582d commit ce22173

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

core/src/main/java/org/apache/calcite/rel/rules/LoptOptimizeJoinRule.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2090,6 +2090,7 @@ public interface Config extends RelRule.Config {
20902090
.withOperandSupplier(b -> b.operand(MultiJoin.class).anyInputs());
20912091

20922092
/** Method to calculate intermediate cost computations. */
2093+
@SuppressWarnings("argument.type.incompatible")
20932094
@Value.Default default BiFunction<RelOptRuleCall, RelNode, RelOptCost> costFunction() {
20942095
return (call, rel) -> call.getMetadataQuery().getCumulativeCost(rel);
20952096
}

core/src/test/java/org/apache/calcite/test/RelOptRulesTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9749,7 +9749,7 @@ private void checkJoinAssociateRuleWithTopAlwaysTrueCondition(boolean allowAlway
97499749
* <a href="https://issues.apache.org/jira/browse/CALCITE-6788">[CALCITE-6788]
97509750
* LoptOptimizeJoinRule should be able to delegate costs to the planner</a>. */
97519751
@Test void testLoptOptimizeJoinRuleWithSpecialCost() {
9752-
// Use and ad-hoc version of the rule that uses planner#getCost instead of mq#getCumulativeCost
9752+
// Use an ad-hoc version of the rule that uses planner#getCost instead of mq#getCumulativeCost
97539753
checkLoptOptimizeJoinRule(LoptOptimizeJoinRule.Config.DEFAULT
97549754
.withCostFunction((c, r) -> c.getPlanner().getCost(r, c.getMetadataQuery()))
97559755
.toRule());

0 commit comments

Comments
 (0)