Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Dec 29, 2021
1 parent 89e6d31 commit d6a3e22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datafusion/src/optimizer/simplify_expressions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,8 @@ impl<'a> Simplifier<'a> {
/// Returns true if expr is nullable
fn nullable(&self, expr: &Expr) -> Result<bool> {
for schema in &self.schemas {
if expr.nullable(schema.as_ref())? {
// expr may be from another input
if expr.nullable(schema.as_ref()).unwrap_or(false) {
return Ok(true);
}
}
Expand Down

0 comments on commit d6a3e22

Please sign in to comment.