haohuaijin opened a new pull request, #16762: URL: https://github.com/apache/datafusion/pull/16762
## Which issue does this PR close? Closes https://github.com/apache/datafusion/issues/16697 ## Rationale for this change improve LiteralGuarantee to handle the case like `(a=1 AND b=1) OR (a=2 AND b=3)` ## What changes are included in this PR? add the logical to extract `(a=1 AND b=1) OR (a=2 AND b=3)` to `in_guarantee("a", [1, 2]), in_guarantee("b", [1, 3])`; 1. splits each disjunction into its constituent conjunctions and filters for equality operations 2. the `find_common_columns` function that identifies columns present in all termsets 3. iterates through common columns and builds guarantees ## Are these changes tested? yes, add some test case ## Are there any user-facing changes? -- 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...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org