diff --git a/datafusion/expr-common/src/type_coercion/binary.rs b/datafusion/expr-common/src/type_coercion/binary.rs index 1a258b259f9f..c32b4951db44 100644 --- a/datafusion/expr-common/src/type_coercion/binary.rs +++ b/datafusion/expr-common/src/type_coercion/binary.rs @@ -330,8 +330,7 @@ impl From<&DataType> for TypeCategory { return TypeCategory::Array; } - // String literal is possible to cast to many other types like numeric or datetime, - // therefore, it is categorized as a unknown type + // It is categorized as unknown type because the type will be resolved later on if matches!( data_type, DataType::Utf8