neilconway commented on issue #20201: URL: https://github.com/apache/datafusion/issues/20201#issuecomment-3863193691
I took a brief look at fixing this, but it was a bit out of my depth. Fixing the `starts_with()` implementation itself would be wrong because this case should be rejected at planning-time, as it is for `IS TRUE` and other variants. For `IS TRUE`, the type mismatch is detected during type coercion; I suppose we could add some type coercion for `IS NULL` and `IS NOT NULL` (e.g., by adding those cases to `TreeNodeRewriter` in `type_coercion.rs`), but I'd appreciate some comments on whether that makes sense or whether a different approach would be preferred. -- 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]
