adriangb commented on PR #18393: URL: https://github.com/apache/datafusion/pull/18393#issuecomment-3477010527
Here are some new numbers after a couple more optimizations to InListExpr: ``` ============================================================ SUMMARY ============================================================ branch_no_inlist : 0.670s avg over 5 runs branch_with_inlist : 0.163s avg over 5 runs main : 1.499s avg over 5 runs duckdb : 1.386s avg over 5 runs ``` I'd like to clarify why the InListExpr makes such a difference: 1. It allows some statistics pruning. The pruning expressions know how to handle `InList` and explode it into a chain of `col = 1 OR col = 2 ...` when there are less than 20 items in the list. This may have some impact but similar to the current min/max pushdown depends on properties of the data. 2. It allows bloom filter pruning. If the above case is hit (less than 20 items) then each one of the `OR` cases will be checked against a bloom filter on the column if one exists. I think it's mainly that latter optimization that provides the win. -- 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]
