mishop-15 commented on issue #20201: URL: https://github.com/apache/datafusion/issues/20201#issuecomment-3875770903
I took a look at this and agree that fixing it in `starts_with()` would be wrong - the panic happens at `starts_with.rs:168` when it tries to access `args[1]` on an empty vector, but this should've been caught earlier. I searched for where to add type coercion for `IS NULL` similar to `IS TRUE` (as you mentioned with `TreeNodeRewriter` in `type_coercion.rs`), but I couldn't locate the exact spot. If you could point me to where `IS TRUE` does its type checking, I'm happy to implement the same pattern for `IS NULL` and `IS NOT NULL`! -- 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]
