Skip to content

Commit 9ff0800

Browse files
authored
Minor: fix merge conflict (apache#13219)
1 parent 6b76a35 commit 9ff0800

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

datafusion/substrait/src/logical_plan/consumer.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,13 +1126,8 @@ fn retrieve_emit_kind(rel_common: Option<&RelCommon>) -> EmitKind {
11261126
.map_or(default, |ek| ek.clone())
11271127
}
11281128

1129-
fn contains_volatile_expr(proj: &Projection) -> Result<bool> {
1130-
for expr in proj.expr.iter() {
1131-
if expr.is_volatile()? {
1132-
return Ok(true);
1133-
}
1134-
}
1135-
Ok(false)
1129+
fn contains_volatile_expr(proj: &Projection) -> bool {
1130+
proj.expr.iter().any(|e| e.is_volatile())
11361131
}
11371132

11381133
fn apply_emit_kind(
@@ -1151,7 +1146,7 @@ fn apply_emit_kind(
11511146
// expressions in the projection are volatile. This is to avoid issues like
11521147
// converting a single call of the random() function into multiple calls due to
11531148
// duplicate fields in the output_mapping.
1154-
LogicalPlan::Projection(proj) if !contains_volatile_expr(&proj)? => {
1149+
LogicalPlan::Projection(proj) if !contains_volatile_expr(&proj) => {
11551150
let mut exprs: Vec<Expr> = vec![];
11561151
for field in output_mapping {
11571152
let expr = proj.expr

0 commit comments

Comments
 (0)