Skip to content

Commit 510bf3e

Browse files
Optimize large Decimal128 IN LIST filters
Route Decimal128 lists above the branchless cutoff through PrimitiveHashSetFilter, replacing the ArrayStaticFilter fallback.
1 parent 58e676e commit 510bf3e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ pub(super) fn instantiate_primitive_filter(
6262
DataType::UInt64 => {
6363
Arc::new(PrimitiveHashSetFilter::<UInt64Type>::try_new(in_array)?)
6464
}
65+
DataType::Decimal128(_, _) => {
66+
Arc::new(PrimitiveHashSetFilter::<Decimal128Type>::try_new(in_array)?)
67+
}
6568
// Float primitive types use ordered wrapper keys for Hash/Eq.
6669
DataType::Float32 => Arc::new(PrimitiveHashSetFilter::<
6770
Float32Type,

0 commit comments

Comments
 (0)