alamb commented on issue #11413: URL: https://github.com/apache/datafusion/issues/11413#issuecomment-2351559100
> _A null-call function is an SQL-invoked function that is defined to return the null value if any of its input argu- ments is the null value. A null-call function is an SQL-invoked function whose specifies “RETURNS NULL ON NULL INPUT”._ Indeed I was thinking of `RETURNS NULL ON NULL INPUT` (though I thought there was some other academic term like "null pure" or something, but I can't find it now). > > With those two properties I do think you can skip most null handling. > > yes. many functions are "return null on null; return non-null on non-null". for these null handling can be externalized, and the function "business logic" abstracted. Exactly! -- 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]
