Closed
Description
Is your feature request related to a problem or challenge?
In #11796 @dharanad added a rule for binary operators such that if Utf8View
is in any side, we coerce to Utf8
.
I think it would be better to coerce to Utf8View as that coercsion will often be faster (it is faster to cast Utf8 -> Utf8View than the other way around)
@XiangpengHao notes: #11796 (comment)
Agree, similar to this policy:
datafusion/datafusion/expr/src/type_coercion/binary.rs
Lines 935 to 947 in b50887f
Describe the solution you'd like
Cast to Utf8View rather than Utf8 in the aforementioned code
Describe alternatives you've considered
No response
Additional context
No response