alamb commented on pull request #10063:
URL: https://github.com/apache/arrow/pull/10063#issuecomment-821132897
> 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.
@jorgecarleitao that is a really good idea. I learn something new every
day! I think using a `StructArray` for creating `RecordBatch`es is confusing,
but the `From` implementation is a great idea. What would you feel about
something like
```
let batch: RecordBatch = vec![
("a", float_array),
("b", timestamp_array),
].into();
```
--
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:
[email protected]