karellincoln opened a new issue, #8609:
URL: https://github.com/apache/arrow-datafusion/issues/8609

   ### Is your feature request related to a problem or challenge?
   
   When I use In_list Expr, if the legth of list is 19, it used 6 ms. but when 
the length grows to 20, it used 200ms.
   
   ### Describe the solution you'd like
   
   in 
[build_predicate_expression](https://github.com/apache/arrow-datafusion/blob/main/datafusion/core/src/physical_optimizer/pruning.rs#L775)
 listExpr pruning down only in `in_list.list().len() < 20` 
   
![image](https://github.com/apache/arrow-datafusion/assets/12014068/0bc77e53-115f-43a2-9780-89fdc317077b)
   
   I want to config the value.
   
   
   
   ### Describe alternatives you've considered
   
   I think.
   add a config in 
[ParquetOptions](https://github.com/apache/arrow-datafusion/blob/main/datafusion/common/src/config.rs#L281)
 and 
[ParquetExec](https://github.com/apache/arrow-datafusion/blob/main/datafusion/core/src/datasource/physical_plan/parquet/mod.rs#L75C19-L75C19)
   
   but I also think that is ugly, Is there a more elegant implementation?
   
   ### Additional context
   
   _No response_


-- 
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: github-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to