tledkov-gridgain commented on a change in pull request #8683:
URL: https://github.com/apache/ignite/pull/8683#discussion_r579302803
##########
File path:
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/rel/IgniteMapAggregateHash.java
##########
@@ -113,8 +93,11 @@ public static RelDataType rowType(RelDataTypeFactory
typeFactory) {
}
/** {@inheritDoc} */
- @Override public IgniteRel clone(RelOptCluster cluster, List<IgniteRel>
inputs) {
- return new IgniteMapAggregate(cluster, getTraitSet(), sole(inputs),
- getGroupSet(), getGroupSets(), getAggCallList());
+ @Override public RelOptCost computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq) {
+ double rows = mq.getRowCount(getInput());
+
+ // TODO: fix it when
https://issues.apache.org/jira/browse/IGNITE-13543 will be resolved
+ // currently it's OK to have such a dummy cost because there is no
other options
+ return planner.getCostFactory().makeCost(rows, rows *
IgniteCost.ROW_PASS_THROUGH_COST, 0);
Review comment:
Fixed
----------------------------------------------------------------
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]