alamb commented on code in PR #20241:
URL: https://github.com/apache/datafusion/pull/20241#discussion_r2784267939


##########
datafusion/expr-common/src/type_coercion/binary.rs:
##########
@@ -470,7 +470,7 @@ fn bitwise_coercion(left_type: &DataType, right_type: 
&DataType) -> Option<DataT
         return None;
     }
 
-    if left_type == right_type {
+    if left_type == right_type && left_type.is_integer() {

Review Comment:
   Can you please add some .slt tests too? For example, the current error looks 
like this:
   
   ```sql
   > select 1.2 & 4.4;
   Error during planning: Data type Float64 not supported for binary operation 
'bitwise_and' on dyn arrays
   >
   ```
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to