@@ -24,7 +24,7 @@ use arrow::compute::kernels::bitwise::{
24
24
bitwise_xor, bitwise_xor_scalar,
25
25
} ;
26
26
use arrow:: datatypes:: DataType ;
27
- use datafusion_common:: internal_err ;
27
+ use datafusion_common:: plan_err ;
28
28
use datafusion_common:: { Result , ScalarValue } ;
29
29
30
30
use arrow_schema:: ArrowError ;
@@ -70,7 +70,7 @@ macro_rules! create_dyn_kernel {
70
70
DataType :: UInt64 => {
71
71
call_bitwise_kernel!( left, right, $KERNEL, UInt64Array )
72
72
}
73
- other => internal_err !(
73
+ other => plan_err !(
74
74
"Data type {:?} not supported for binary operation '{}' on dyn arrays" ,
75
75
other,
76
76
stringify!( $KERNEL)
@@ -116,7 +116,7 @@ macro_rules! create_dyn_scalar_kernel {
116
116
DataType :: UInt16 => call_bitwise_scalar_kernel!( array, scalar, $KERNEL, UInt16Array , u16 ) ,
117
117
DataType :: UInt32 => call_bitwise_scalar_kernel!( array, scalar, $KERNEL, UInt32Array , u32 ) ,
118
118
DataType :: UInt64 => call_bitwise_scalar_kernel!( array, scalar, $KERNEL, UInt64Array , u64 ) ,
119
- other => internal_err !(
119
+ other => plan_err !(
120
120
"Data type {:?} not supported for binary operation '{}' on dyn arrays" ,
121
121
other,
122
122
stringify!( $KERNEL)
0 commit comments