comphead commented on code in PR #19518:
URL: https://github.com/apache/datafusion/pull/19518#discussion_r2653914419


##########
datafusion/ffi/src/udf/mod.rs:
##########
@@ -140,8 +140,16 @@ unsafe extern "C" fn coerce_types_fn_wrapper(
 ) -> FFIResult<RVec<WrappedSchema>> {
     let arg_types = rresult_return!(rvec_wrapped_to_vec_datatype(&arg_types));
 
+    let arg_fields = arg_types
+        .iter()
+        .map(|dt| Field::new("f", dt.clone(), true))
+        .map(Arc::new)

Review Comment:
   ```suggestion
           .map(|dt| Arc::new(Field::new("f", dt.clone(), true)))
   ```



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