Skip to content

Commit

Permalink
Fix nullaware anti
Browse files Browse the repository at this point in the history
  • Loading branch information
marin-ma authored and zhejiangxiaomai committed Apr 14, 2023
1 parent e21424d commit 4ad47c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions velox/substrait/SubstraitToVeloxPlan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ core::PlanNodePtr SubstraitVeloxPlanConverter::toVeloxPlan(

// Map join type.
core::JoinType joinType;
bool isNullAwareAntiJoin = false;
switch (sJoin.type()) {
case ::substrait::JoinRel_JoinType::JoinRel_JoinType_JOIN_TYPE_INNER:
joinType = core::JoinType::kInner;
Expand Down Expand Up @@ -280,10 +281,9 @@ core::PlanNodePtr SubstraitVeloxPlanConverter::toVeloxPlan(
if (sJoin.has_advanced_extension() &&
subParser_->configSetInOptimization(
sJoin.advanced_extension(), "isNullAwareAntiJoin=")) {
joinType = core::JoinType::kNullAwareAnti;
} else {
joinType = core::JoinType::kAnti;
isNullAwareAntiJoin = true;
}
joinType = core::JoinType::kAnti;
break;
}
default:
Expand Down Expand Up @@ -334,7 +334,7 @@ core::PlanNodePtr SubstraitVeloxPlanConverter::toVeloxPlan(
return std::make_shared<core::HashJoinNode>(
nextPlanNodeId(),
joinType,
joinType == core::JoinType::kNullAwareAnti ? true : false,
isNullAwareAntiJoin,
leftKeys,
rightKeys,
filter,
Expand Down

0 comments on commit 4ad47c1

Please sign in to comment.