Skip to content

Commit b8334a5

Browse files
committed
fix match
1 parent 972010e commit b8334a5

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/query/expression/src/evaluator.rs

+8-3
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,14 @@ impl<'a> Evaluator<'a> {
377377
.set_span(span))
378378
}
379379
}
380-
(DataType::Nullable(box DataType::Variant) | DataType::Variant, other)
381-
if !other.is_nullable() =>
382-
{
380+
(
381+
DataType::Nullable(box DataType::Variant) | DataType::Variant,
382+
DataType::Boolean
383+
| DataType::Number(_)
384+
| DataType::String
385+
| DataType::Date
386+
| DataType::Timestamp,
387+
) => {
383388
// allow cast variant to not null types.
384389
let cast_fn = format!("to_{}", dest_type.to_string().to_lowercase());
385390
if let Some(new_value) = self.run_simple_cast(

0 commit comments

Comments
 (0)