We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdcb31d commit 099dc05Copy full SHA for 099dc05
datafusion/expr/src/expr_schema.rs
@@ -583,12 +583,13 @@ impl ExprSchemable for Expr {
583
Expr::Cast(Cast { expr, field }) => expr
584
.to_field(schema)
585
.map(|(_, f)| {
586
+ // This currently propagates the nullability of the input
587
+ // expression as the resulting physical expression does
588
+ // not currently consider the nullability specified here
589
f.as_ref()
590
.clone()
591
.with_data_type(field.data_type().clone())
592
.with_metadata(f.metadata().clone())
- // TODO: should nullability be overridden here or derived from the
- // input expression?
593
})
594
.map(Arc::new),
595
Expr::Placeholder(Placeholder {
0 commit comments