You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/04/16 11:27:49 UTC

[GitHub] [arrow] jorgecarleitao edited a comment on pull request #10063: ARROW-12411: [Rust] Add Builder interface for adding Arrays to RecordBatches

jorgecarleitao edited a comment on pull request #10063:
URL: https://github.com/apache/arrow/pull/10063#issuecomment-821099974


   Wouldn't the following work? (untested)
   
   ```rust
   let batch: RecordBatch = (&StructArray::try_from(vec![
       ("a", float_array),
       ("b", timestamp_array),
   ])?).into();
   ```
   
   
   If we do not want to use a `StructArray`, I would prefer that we have a constructor like this and thus keep the RecordBatch imutable.


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

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