Skip to content

Commit f87db21

Browse files
authored
fix error type (#12646)
Co-authored-by: Dharan Aditya <[email protected]>
1 parent c21d025 commit f87db21

File tree

1 file changed

+3
-3
lines changed
  • datafusion/physical-expr/src/expressions/binary

1 file changed

+3
-3
lines changed

datafusion/physical-expr/src/expressions/binary/kernels.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use arrow::compute::kernels::bitwise::{
2424
bitwise_xor, bitwise_xor_scalar,
2525
};
2626
use arrow::datatypes::DataType;
27-
use datafusion_common::internal_err;
27+
use datafusion_common::plan_err;
2828
use datafusion_common::{Result, ScalarValue};
2929

3030
use arrow_schema::ArrowError;
@@ -70,7 +70,7 @@ macro_rules! create_dyn_kernel {
7070
DataType::UInt64 => {
7171
call_bitwise_kernel!(left, right, $KERNEL, UInt64Array)
7272
}
73-
other => internal_err!(
73+
other => plan_err!(
7474
"Data type {:?} not supported for binary operation '{}' on dyn arrays",
7575
other,
7676
stringify!($KERNEL)
@@ -116,7 +116,7 @@ macro_rules! create_dyn_scalar_kernel {
116116
DataType::UInt16 => call_bitwise_scalar_kernel!(array, scalar, $KERNEL, UInt16Array, u16),
117117
DataType::UInt32 => call_bitwise_scalar_kernel!(array, scalar, $KERNEL, UInt32Array, u32),
118118
DataType::UInt64 => call_bitwise_scalar_kernel!(array, scalar, $KERNEL, UInt64Array, u64),
119-
other => internal_err!(
119+
other => plan_err!(
120120
"Data type {:?} not supported for binary operation '{}' on dyn arrays",
121121
other,
122122
stringify!($KERNEL)

0 commit comments

Comments
 (0)