kumarUjjawal opened a new pull request, #27832: URL: https://github.com/apache/datafusion/pull/27832
> [!IMPORTANT] > > Fork CI is enabled. [Fork CI setup guide](https://datafusion.apache.org/contributor-guide/#pull-requests-from-forks) ## Which issue does this PR close? Closes #25612 ## Rationale for this change Adding `AND p_type LIKE '%BRASS%'` to `p_size = 15` raised the TPC-H SF1 estimate from 4,000 to 40,000 rows for a query that returns 747. ## What changes are included in this PR? Analyze supported conditions together and use the smallest string or `IN` estimate per column so each column's NULL share is counted once. ## What is the testing strategy for this PR? - Parquet SQL logic regression in `parquet_statistics.slt` - Filter unit tests for residual selectivity, distinct counts, and shared NULL rejection - Extended workspace suite and TPC-H SF1 reproduction ## Are there any user-facing changes? The mixed TPC-H filter now estimates 800 rows. -- 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]
