kosiew commented on code in PR #17418:
URL: https://github.com/apache/datafusion/pull/17418#discussion_r2329411507
##########
datafusion/expr-common/src/type_coercion/binary.rs:
##########
@@ -316,6 +321,17 @@ impl<'a> BinaryTypeCoercer<'a> {
}
}
+#[inline]
+fn is_both_null(lhs: &DataType, rhs: &DataType) -> bool {
+ matches!(lhs, DataType::Null) && matches!(rhs, DataType::Null)
+}
+
+#[inline]
+fn is_arithmetic(op: &Operator) -> bool {
Review Comment:
You can use
Operator::is_numerical_operators
instead.
--
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]