comphead commented on issue #2321:
URL: 
https://github.com/apache/datafusion-comet/issues/2321#issuecomment-3259489120

   The issue is in nullability flag, the binary comparison in DF is done by 
   
   ```
           if left_data_type.is_nested() {
               if !left_data_type.equals_datatype(&right_data_type) {
                   return internal_err!("Cannot evaluate binary expression 
because of type mismatch: left {}, right {} ", left_data_type, right_data_type);
               }
               return apply_cmp_for_nested(self.op, &lhs, &rhs);
           }
   ```
   
   And `equals_datatype` checks the nulls flag


-- 
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