You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by co...@apache.org on 2023/12/20 17:19:02 UTC
(arrow-datafusion) branch main updated: replace not-impl-err (#8589)
This is an automated email from the ASF dual-hosted git repository.
comphead pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git
The following commit(s) were added to refs/heads/main by this push:
new b925b78fd8 replace not-impl-err (#8589)
b925b78fd8 is described below
commit b925b78fd8040f858168e439eda5042bd2a34af6
Author: Alex Huang <hu...@gmail.com>
AuthorDate: Wed Dec 20 18:18:56 2023 +0100
replace not-impl-err (#8589)
---
datafusion/physical-expr/src/array_expressions.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/datafusion/physical-expr/src/array_expressions.rs b/datafusion/physical-expr/src/array_expressions.rs
index d396581083..0a76319188 100644
--- a/datafusion/physical-expr/src/array_expressions.rs
+++ b/datafusion/physical-expr/src/array_expressions.rs
@@ -455,7 +455,7 @@ pub fn array_element(args: &[ArrayRef]) -> Result<ArrayRef> {
let indexes = as_int64_array(&args[1])?;
general_array_element::<i64>(array, indexes)
}
- _ => not_impl_err!(
+ _ => exec_err!(
"array_element does not support type: {:?}",
args[0].data_type()
),
@@ -571,7 +571,7 @@ pub fn array_slice(args: &[ArrayRef]) -> Result<ArrayRef> {
let to_array = as_int64_array(&args[2])?;
general_array_slice::<i64>(array, from_array, to_array)
}
- _ => not_impl_err!("array_slice does not support type: {:?}", array_data_type),
+ _ => exec_err!("array_slice does not support type: {:?}", array_data_type),
}
}
@@ -1335,7 +1335,7 @@ pub fn array_positions(args: &[ArrayRef]) -> Result<ArrayRef> {
general_positions::<i64>(arr, element)
}
array_type => {
- not_impl_err!("array_positions does not support type '{array_type:?}'.")
+ exec_err!("array_positions does not support type '{array_type:?}'.")
}
}
}