Fix GPDB_12_MERGE_FIXME in try_partial_mergejoin_path()
Pass in `orig_jointype` for try_partial_mergejoin_path() which is needed when creating mergejoin path.
@@ -55,6 +55,7 @@ static void try_partial_mergejoin_path(PlannerInfo *root,
List *outersortkeys,
List *innersortkeys,
JoinType jointype,
+ JoinType orig_jointype,
JoinPathExtraData *extra);
static void sort_inner_and_outer(PlannerInfo *root, RelOptInfo *joinrel,
RelOptInfo *outerrel, RelOptInfo *innerrel,
@@ -631,6 +632,7 @@ try_mergejoin_path(PlannerInfo *root,
outersortkeys,
innersortkeys,
jointype,
+ orig_jointype,
extra);
return;
}
@@ -711,6 +713,7 @@ try_partial_mergejoin_path(PlannerInfo *root,
List *outersortkeys,
List *innersortkeys,
JoinType jointype,
+ JoinType orig_jointype,
JoinPathExtraData *extra)
{
JoinCostWorkspace workspace;
@@ -754,7 +757,7 @@ try_partial_mergejoin_path(PlannerInfo *root,
create_mergejoin_path(root,
joinrel,
jointype,
- jointype, /* GPDB_12_MERGE_FIXME: Is 'jointype' always same as orig_jointype here? */
+ orig_jointype,
&workspace,
extra,
outer_path,
@@ -1126,6 +1129,7 @@ sort_inner_and_outer(PlannerInfo *root,
outerkeys,
innerkeys,
jointype,
+ save_jointype,
extra);
}
}
