kumarUjjawal commented on PR #19270:
URL: https://github.com/apache/datafusion/pull/19270#issuecomment-3649079397

   Can we do something like this
   ```/// Helper to compute return field with nullability propagation from 
input fields
   fn return_field_for_binary_op(
       name: &str,
       args: ReturnFieldArgs,
   ) -> Result<FieldRef> {
       let any_nullable = args.arg_fields.iter().any(|f| f.is_nullable());
       let data_type = args.arg_fields[0].data_type().clone();
       Ok(Arc::new(Field::new(name, data_type, any_nullable)))
   }
   ```
   
   And use in both the `return_field_from_args` functions.


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

Reply via email to