alamb commented on code in PR #2481: URL: https://github.com/apache/arrow-datafusion/pull/2481#discussion_r870145839
########## datafusion/physical-expr/src/expressions/binary.rs: ########## @@ -657,17 +657,15 @@ macro_rules! compute_utf8_op_scalar { /// Invoke a compute kernel on a data array and a scalar value macro_rules! compute_utf8_op_dyn_scalar { - ($LEFT:expr, $RIGHT:expr, $OP:ident) => {{ + ($LEFT:expr, $RIGHT:expr, $OP:ident, $OP_TYPE:expr) => {{ if let Some(string_value) = $RIGHT { Ok(Arc::new(paste::expr! {[<$OP _dyn_utf8_scalar>]}( $LEFT, &string_value, )?)) } else { - Err(DataFusionError::Internal(format!( - "compute_utf8_op_scalar for '{}' failed with literal 'none' value", - stringify!($OP), - ))) + // when the $RIGHT is a NULL, generate a NULL array of $OP_TYPE + Ok(Arc::new(new_null_array($OP_TYPE, $LEFT.len()))) Review Comment: I will spend some time writing the `NULL != column` -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org