diff --git a/cpp/velox/substrait/SubstraitToVeloxPlan.cc b/cpp/velox/substrait/SubstraitToVeloxPlan.cc index af05f87372c5b..10e4561b8ab9a 100644 --- a/cpp/velox/substrait/SubstraitToVeloxPlan.cc +++ b/cpp/velox/substrait/SubstraitToVeloxPlan.cc @@ -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; }