We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df2d0ce commit bccdc2eCopy full SHA for bccdc2e
datafusion/expr/src/type_coercion/functions.rs
@@ -572,6 +572,9 @@ fn coerced_from<'a>(
572
{
573
Some(type_into.clone())
574
}
575
+ (Date32, _) if matches!(type_from, Date32 | Utf8 | LargeUtf8 | Null) => {
576
+ Some(type_into.clone())
577
+ }
578
(Timestamp(TimeUnit::Nanosecond, None), _)
579
if matches!(
580
type_from,
@@ -580,7 +583,7 @@ fn coerced_from<'a>(
583
581
584
582
585
- (Interval(_), _) if matches!(type_from, Utf8 | LargeUtf8) => {
586
+ (Interval(_), _) if matches!(type_from, Utf8 | LargeUtf8 | Null) => {
587
588
589
// We can go into a Utf8View from a Utf8 or LargeUtf8
0 commit comments