tustvold commented on issue #3702:
URL: https://github.com/apache/arrow-rs/issues/3702#issuecomment-1427131245
I suspect `FromIterator` will run into issues with trait specialization, we
run into this also with supporting both optional and non-optional iterators,
but I can't say I've tried to make this work.
That being said you can write something like, which may be sufficient for
your needs. The reason this works is you "help" the compiler by fully
specifying the nested type in the form of the builder.
```
let mut builder = ListBuilder::new(ListBuilder::new(Int32Builder::new()));
builder.extend(vec![
Some(vec![Some(vec![Some(1), None, Some(2)]), None]),
Some(vec![]),
Some(vec![None]),
None,
]);
let built = builder.finish();
```
--
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]