adriangb commented on PR #16599: URL: https://github.com/apache/datafusion/pull/16599#issuecomment-3019162455
> @adriangb is also thinking about / working on a more general predicate optimziation in > > * [Add PhysicalExpr optimizer and cast unwrapping #16530](https://github.com/apache/datafusion/pull/16530) Yep the whole idea of that PR is that for cases like `ScalarValue::Utf8View(...) = column` instead of casting `column` we cast `ScalarValue::Utf8View(...)` to `ScalarValue::Utf8(...)` or even `ScalarValue::Binary(...)` (I think for equality that is valid, we could even do it more generally to avoid any Utf8 validation / string conversion). So I think it should resolve issues like this with no additional settings or configuration, at least after a couple more optimizations are added 😄 -- 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