fix temp table insert estimate row count bug

This commit is contained in:
zzg19950727 2024-05-20 04:46:52 +00:00 committed by ob-robot
parent 853d39ac42
commit d40c944130
2 changed files with 6 additions and 5 deletions

View File

@ -111,6 +111,7 @@ int ObLogTempTableInsert::do_re_est_cost(EstimateCostInfo &param, double &card,
child->get_width(),
opt_ctx);
cost += op_cost;
card = 0;
}
return ret;
}
@ -129,4 +130,4 @@ int ObLogTempTableInsert::get_plan_item_info(PlanText &plan_text,
plan_item.object_alias_len_);
}
return ret;
}
}

View File

@ -8,10 +8,10 @@ Query Plan
====================================================================================
|ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|
------------------------------------------------------------------------------------
|0 |TEMP TABLE TRANSFORMATION | |1 |5 |
|1 |├─PX COORDINATOR | |1 |3 |
|2 |│ └─EXCHANGE OUT DISTR |:EX10001 |1 |3 |
|3 |│ └─TEMP TABLE INSERT |TEMP1 |1 |3 |
|0 |TEMP TABLE TRANSFORMATION | |1 |4 |
|1 |├─PX COORDINATOR | |0 |3 |
|2 |│ └─EXCHANGE OUT DISTR |:EX10001 |0 |3 |
|3 |│ └─TEMP TABLE INSERT |TEMP1 |0 |3 |
|4 |│ └─HASH GROUP BY | |1 |3 |
|5 |│ └─EXCHANGE IN DISTR | |1 |3 |
|6 |│ └─EXCHANGE OUT DISTR (HASH) |:EX10000 |1 |2 |