Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
WangGuangxin committed Aug 6, 2024
1 parent a6f57c7 commit 056f5e3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cpp/velox/substrait/SubstraitToVeloxPlan.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1610,14 +1610,12 @@ bool SubstraitToVeloxPlanConverter::canPushdownFunction(
}

// The arg should be field or field with literal.
if(!fieldOrWithLiteral(scalarFunction.arguments(), fieldIdx)) {
if (!fieldOrWithLiteral(scalarFunction.arguments(), fieldIdx)) {
return false;
}

// check whether data type is supported or not
if (!veloxTypeList.empty() &&
fieldIdx < veloxTypeList.size() &&
!isPushdownSupported(veloxTypeList.at(fieldIdx))) {
if (!veloxTypeList.empty() && fieldIdx < veloxTypeList.size() && !isPushdownSupported(veloxTypeList.at(fieldIdx))) {
return false;
}

Expand Down

0 comments on commit 056f5e3

Please sign in to comment.