protected RelOptCost computeLogicalAggCost(RelOptPlanner planner, RelMetadataQuery mq) { // Similar to Join cost estimation, use HashAgg cost during the logical planning. return computeHashAggCost(planner, mq); }
if(PrelUtil.getSettings(getCluster()).useDefaultCosting()) { return super.computeSelfCost(planner, mq).multiplyBy(.1); RelNode child = this.getInput(); double inputRows = mq.getRowCount(child); int numGroupByFields = this.getGroupCount(); int numAggrFields = this.aggCalls.size();