zstan commented on a change in pull request #8590:
URL: https://github.com/apache/ignite/pull/8590#discussion_r548838646
##########
File path:
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/rel/IgniteTrimExchange.java
##########
@@ -87,8 +94,10 @@ public IgniteTrimExchange(RelInput input) {
/** {@inheritDoc} */
@Override public RelOptCost computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) {
- double rowCount = mq.getRowCount(this);
- return planner.getCostFactory().makeCost(rowCount, rowCount, 0);
+ double rowCount = mq.getRowCount(getInput());
+
+ return planner.getCostFactory().makeCost(rowCount,
+ rowCount * (IgniteCost.ROW_COMPARISON_COST +
IgniteCost.ROW_PASS_THROUGH_COST), 0);
Review comment:
not obvious here, can u explain plz ? why :
IgniteCost.ROW_COMPARISON_COST + IgniteCost.ROW_PASS_THROUGH_COST
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]