We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 972010e commit b8334a5Copy full SHA for b8334a5
src/query/expression/src/evaluator.rs
@@ -377,9 +377,14 @@ impl<'a> Evaluator<'a> {
377
.set_span(span))
378
}
379
380
- (DataType::Nullable(box DataType::Variant) | DataType::Variant, other)
381
- if !other.is_nullable() =>
382
- {
+ (
+ DataType::Nullable(box DataType::Variant) | DataType::Variant,
+ DataType::Boolean
383
+ | DataType::Number(_)
384
+ | DataType::String
385
+ | DataType::Date
386
+ | DataType::Timestamp,
387
+ ) => {
388
// allow cast variant to not null types.
389
let cast_fn = format!("to_{}", dest_type.to_string().to_lowercase());
390
if let Some(new_value) = self.run_simple_cast(
0 commit comments