istvan-fodor commented on issue #5494:
URL: https://github.com/apache/arrow-rs/issues/5494#issuecomment-1987397875
Hi @tustvold ,
Is there a way to cast the result to a ListBuilder<StructBuilder> or
ListBuilder<Box<StructBuilder>> ?
I tried this and it fails on the unwrap:
```rust
let mut list_builder_option = struct_builder
.field_builder::<arrow::array::builder::ListBuilder<Box<dyn
arrow::array::ArrayBuilder>>>(
1usize,
)
.unwrap();
let mut list_struct_builder = list_builder_option
.as_any_mut()
.downcast_mut::<arrow::array::builder::ListBuilder<arrow::array::StructBuilder>>()
.unwrap();
}
```
Downcasting with
`<arrow::array::builder::ListBuilder<Box<arrow::array::StructBuilder>>>`
outright fails compilation.
--
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]