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: [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]