Skip to content

Commit d6a3e22

Browse files
committed
fix
1 parent 89e6d31 commit d6a3e22

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

datafusion/src/optimizer/simplify_expressions.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,8 @@ impl<'a> Simplifier<'a> {
405405
/// Returns true if expr is nullable
406406
fn nullable(&self, expr: &Expr) -> Result<bool> {
407407
for schema in &self.schemas {
408-
if expr.nullable(schema.as_ref())? {
408+
// expr may be from another input
409+
if expr.nullable(schema.as_ref()).unwrap_or(false) {
409410
return Ok(true);
410411
}
411412
}

0 commit comments

Comments
 (0)