jayzhan211 commented on PR #14289:
URL: https://github.com/apache/datafusion/pull/14289#issuecomment-2613940212

   Maybe we need yet another trait implementation
   
   ```rust
   trait ScalarUDFImpl {
      fn handle_nulls(&self, args: ScalarFunctionArgs) -> 
Result<Option<ColumnarValue>> {
       // most of the case if any null exist, we return null
      }
   }
   
   
   for coalesce:
   fn handle_nulls(&self, args: ScalarFunctionArgs) -> 
Result<Option<ColumnarValue>> {
     // handle it inside the funciton
     None
   }
   ```


-- 
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

Reply via email to