You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "JosiahParry (via GitHub)" <gi...@apache.org> on 2023/11/23 02:27:47 UTC

[I] `ffi::from_ffi()` requires a schema for an array [arrow-rs]

JosiahParry opened a new issue, #5118:
URL: https://github.com/apache/arrow-rs/issues/5118

   **Which part is this question about**
   
   `ffi::from_ffi()`
   
   **Describe your question**
   
   When using `ffi::from_ffi()` to bring in an array from R, we need have a reference to `FFI_ArrowSchema` however, the arrays in R do not have a schema associated with it. Is there another way to bring an array _without_ a schema or provide an empty one? 
   
   **Additional context**
   
   Related: https://github.com/JosiahParry/arrow-extendr/issues/1


-- 
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-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] `ffi::from_ffi()` requires a schema for an array [arrow-rs]

Posted by "wjones127 (via GitHub)" <gi...@apache.org>.
wjones127 commented on issue #5118:
URL: https://github.com/apache/arrow-rs/issues/5118#issuecomment-1830507243

   @JosiahParry Can we close this?
   
   > arrays in R do not have a schema associated with it.
   
   To fill in some blanks for future readers. Arrays don't have a "schema" but they do have a data type (e.g. float, double, int64), and that's what information needs to be set in `FFI_ArrowSchema`.


-- 
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-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] `ffi::from_ffi()` requires a schema for an array [arrow-rs]

Posted by "viirya (via GitHub)" <gi...@apache.org>.
viirya commented on issue #5118:
URL: https://github.com/apache/arrow-rs/issues/5118#issuecomment-1823762702

   Hmm, without a schema, how does the importer knows what are the arrays to be imported and how to interpret the contents? When you export the arrays from R, you should export both ArrowSchema and ArrowArray structs: https://arrow.apache.org/docs/format/CDataInterface.html.
   
   


-- 
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-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] `ffi::from_ffi()` requires a schema for an array [arrow-rs]

Posted by "JosiahParry (via GitHub)" <gi...@apache.org>.
JosiahParry closed issue #5118: `ffi::from_ffi()` requires a schema for an array
URL: https://github.com/apache/arrow-rs/issues/5118


-- 
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-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] `ffi::from_ffi()` requires a schema for an array [arrow-rs]

Posted by "JosiahParry (via GitHub)" <gi...@apache.org>.
JosiahParry commented on issue #5118:
URL: https://github.com/apache/arrow-rs/issues/5118#issuecomment-1830521971

   @wjones127 thank you for the additional context. I think that is what was missing for me. 


-- 
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-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org