[enhancement](Nereids) disable heavy operator penalty in cost model v1 (#18422)

This commit is contained in:
minghong
2023-04-07 13:16:59 +08:00
committed by GitHub
parent a7b708263d
commit b1956b42fb

View File

@ -56,7 +56,7 @@ class CostModelV1 extends PlanVisitor<Cost, PlanContext> {
* <p>
* An example is tpch q15.
*/
static final double HEAVY_OPERATOR_PUNISH_FACTOR = 1.0;
static final double HEAVY_OPERATOR_PUNISH_FACTOR = 0.0;
public static Cost addChildCost(Plan plan, Cost planCost, Cost childCost, int index) {
Preconditions.checkArgument(childCost instanceof CostV1 && planCost instanceof CostV1);