e-kotov commented on code in PR #475:
URL: https://github.com/apache/sedona-db/pull/475#discussion_r2669304364


##########
r/sedonadb/src/rust/src/ffi.rs:
##########
@@ -78,6 +78,11 @@ pub fn import_scalar_udf(mut scalar_udf_xptr: savvy::Sexp) 
-> savvy::Result<Scal
     Ok(scalar_udf_impl.into())
 }
 
+pub fn import_arrow_field(mut xptr: savvy::Sexp) -> 
savvy::Result<arrow_schema::Field> {
+    let ffi_schema: &FFI_ArrowSchema = import_xptr(&mut xptr, 
"nanoarrow_schema")?;
+    arrow_schema::Field::try_from(ffi_schema).map_err(|e| savvy_err!("{e}"))
+}
+

Review Comment:
   missed it! I will remove it



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

Reply via email to