Skip to content

Commit 0a0b65b

Browse files
authored
fix: if expr nullable (#2217)
1 parent 8112e1a commit 0a0b65b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

native/spark-expr/src/conditional_funcs/if_expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ impl PhysicalExpr for IfExpr {
9898
}
9999

100100
fn nullable(&self, _input_schema: &Schema) -> Result<bool> {
101-
if self.true_expr.nullable(_input_schema)? || self.true_expr.nullable(_input_schema)? {
101+
if self.true_expr.nullable(_input_schema)? || self.false_expr.nullable(_input_schema)? {
102102
Ok(true)
103103
} else {
104104
Ok(false)

0 commit comments

Comments
 (0)