adriangb commented on PR #12606: URL: https://github.com/apache/datafusion/pull/12606#issuecomment-2380876520
The point is the rewrite I want to do is `col = 'a'` or `col in ('a', 'b')` into `col_distinct = ANY(['a'])` or `col_distinct = ANY(['a', 'b'])` respectively (or maybe `exists (select * from col__distinct where col = ANY(['a', 'b']) and stats.row_group_id = col__distinct .row_group_id)`, I'm still playing around with real world data and plans to see what is best; point is it's an arbitrarily complex expression that I want left alone). As per above if I do that before PruningPredicate it won't preserve my transformation and will instead convert it to `true`. -- 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