Jefffrey commented on code in PR #18256:
URL: https://github.com/apache/datafusion/pull/18256#discussion_r2503667419
##########
datafusion/physical-expr-common/src/datum.rs:
##########
@@ -79,12 +109,18 @@ pub fn apply_cmp_for_nested(
| Operator::GtEq
| Operator::IsDistinctFrom
| Operator::IsNotDistinctFrom
- ) {
+ ) && left_data_type.equals_datatype(&right_data_type)
+ {
apply(lhs, rhs, |l, r| {
Ok(Arc::new(compare_op_for_nested(op, l, r)?))
})
} else {
- internal_err!("invalid operator for nested")
+ internal_err!(
+ "invalid operator for nested data, op {} left {}, right {}",
Review Comment:
At this point it could also be due to mismatched left/right types I believe,
not just invalid operator?
--
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]