提交 b81d4055 编写于 作者: H Heikki Linnakangas

Remove if that was always true.

A HashJoin would always have an outer_plan, hence the if-statement was
pointless. It was added a long time ago in GPDB, due to a bug that was
related to Adaptive Joins. We haven't had Adaptive Joins for ages, so
it was dead code.
上级 9656e4a5
......@@ -654,14 +654,7 @@ create_join_plan(PlannerInfo *root, JoinPath *best_path)
* quals.
*/
if (root->hasPseudoConstantQuals)
{
/*
* MPP-2328: don't create a gating plan for the hash-child of a
* NL-join
*/
if (!IsA(plan, HashJoin) ||outer_plan != NULL)
plan = create_gating_plan(root, plan, best_path->joinrestrictinfo);
}
plan = create_gating_plan(root, plan, best_path->joinrestrictinfo);
#ifdef NOT_USED
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册