jayzhan211 commented on issue #13519: URL: https://github.com/apache/datafusion/issues/13519#issuecomment-2526557445
Not really, `DataType` has no nullable info, we have to send `nullable` to `ScalarFunctionArgs` https://github.com/apache/datafusion/blob/6c9355d5be8b6045865fed67cb6d028b2dfc2e06/datafusion/physical-expr/src/scalar_function.rs#L148-L153 ```rust // evaluate the function let nullable = self.nullable; let output = self.fun.invoke_with_args(ScalarFunctionArgs { args: inputs.as_slice(), number_rows: batch.num_rows(), return_type: &self.return_type, nullable, })?; ``` -- 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