alamb commented on code in PR #18832:
URL: https://github.com/apache/datafusion/pull/18832#discussion_r2612206421


##########
datafusion/physical-expr/src/expressions/in_list.rs:
##########
@@ -138,9 +142,20 @@ fn instantiate_static_filter(
     in_array: ArrayRef,
 ) -> Result<Arc<dyn StaticFilter + Send + Sync>> {
     match in_array.data_type() {
+        // Integer primitive types
+        DataType::Int8 => Ok(Arc::new(Int8StaticFilter::try_new(&in_array)?)),
+        DataType::Int16 => 
Ok(Arc::new(Int16StaticFilter::try_new(&in_array)?)),
         DataType::Int32 => 
Ok(Arc::new(Int32StaticFilter::try_new(&in_array)?)),
+        DataType::Int64 => 
Ok(Arc::new(Int64StaticFilter::try_new(&in_array)?)),
+        DataType::UInt8 => 
Ok(Arc::new(UInt8StaticFilter::try_new(&in_array)?)),
+        DataType::UInt16 => 
Ok(Arc::new(UInt16StaticFilter::try_new(&in_array)?)),
+        DataType::UInt32 => 
Ok(Arc::new(UInt32StaticFilter::try_new(&in_array)?)),
+        DataType::UInt64 => 
Ok(Arc::new(UInt64StaticFilter::try_new(&in_array)?)),
+        // Float primitive types (use ordered wrappers for Hash/Eq)
+        DataType::Float32 => 
Ok(Arc::new(Float32StaticFilter::try_new(&in_array)?)),
+        DataType::Float64 => 
Ok(Arc::new(Float64StaticFilter::try_new(&in_array)?)),

Review Comment:
   Do we know if adding an optimized version of the binary / string type 
comparisons is tracked with a ticket?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to