edmondop commented on issue #11618: URL: https://github.com/apache/datafusion/issues/11618#issuecomment-2278752770
@jayzhan211 do you think we should start by adding an helper macro for pattern matching branches of UDF `invoke` that should never happen? ```rust udf_unreachable!() ``` that might create an [InternalError](https://github.com/apache/datafusion/blob/1e93f7fa2cb3b7bda71743e7ebe24999ff4d40a4/datafusion/common/src/error.rs#L91) ```rust DataFusionError::Internal("This branch of the UDF should never be executed since pre-requisites are checked through type_signature and return_type") ``` -- 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