Skip to content

Commit 4fef640

Browse files
fix: classify branchless filter limit as internal
1 parent 459463f commit 4fef640

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎datafusion/physical-expr/src/expressions/in_list/branchless_filter.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ use arrow::array::{Array, ArrayRef, AsArray, BooleanArray, PrimitiveArray};
7474
use arrow::buffer::{BooleanBuffer, ScalarBuffer};
7575
use arrow::datatypes::*;
7676
use arrow::util::bit_iterator::BitIndexIterator;
77-
use datafusion_common::{Result, exec_datafusion_err};
77+
use datafusion_common::{Result, exec_datafusion_err, internal_datafusion_err};
7878

7979
use super::result::build_result_from_contains;
8080
use super::static_filter::{StaticFilter, handle_dictionary};
@@ -211,7 +211,7 @@ where
211211
let non_null_count = in_array.len() - in_array.null_count();
212212
// `try_new` can be called on its own, so check the limit here too.
213213
if non_null_count > T::MAX_LIST_LEN {
214-
return Err(exec_datafusion_err!(
214+
return Err(internal_datafusion_err!(
215215
"BranchlessFilter: supports at most {} non-null values, got {non_null_count}",
216216
T::MAX_LIST_LEN
217217
));

0 commit comments

Comments
 (0)