Skip to content

Commit

Permalink
fix error type (#12646)
Browse files Browse the repository at this point in the history
Co-authored-by: Dharan Aditya <[email protected]>
  • Loading branch information
dharanad and Dharan Aditya authored Sep 28, 2024
1 parent c21d025 commit f87db21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions datafusion/physical-expr/src/expressions/binary/kernels.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use arrow::compute::kernels::bitwise::{
bitwise_xor, bitwise_xor_scalar,
};
use arrow::datatypes::DataType;
use datafusion_common::internal_err;
use datafusion_common::plan_err;
use datafusion_common::{Result, ScalarValue};

use arrow_schema::ArrowError;
Expand Down Expand Up @@ -70,7 +70,7 @@ macro_rules! create_dyn_kernel {
DataType::UInt64 => {
call_bitwise_kernel!(left, right, $KERNEL, UInt64Array)
}
other => internal_err!(
other => plan_err!(
"Data type {:?} not supported for binary operation '{}' on dyn arrays",
other,
stringify!($KERNEL)
Expand Down Expand Up @@ -116,7 +116,7 @@ macro_rules! create_dyn_scalar_kernel {
DataType::UInt16 => call_bitwise_scalar_kernel!(array, scalar, $KERNEL, UInt16Array, u16),
DataType::UInt32 => call_bitwise_scalar_kernel!(array, scalar, $KERNEL, UInt32Array, u32),
DataType::UInt64 => call_bitwise_scalar_kernel!(array, scalar, $KERNEL, UInt64Array, u64),
other => internal_err!(
other => plan_err!(
"Data type {:?} not supported for binary operation '{}' on dyn arrays",
other,
stringify!($KERNEL)
Expand Down

0 comments on commit f87db21

Please sign in to comment.