dvic commented on issue #5344:
URL: https://github.com/apache/arrow-rs/issues/5344#issuecomment-1916486551
Hmm I might be confusing then something else, it seems that Vec<Box<...>> is
requiring this
```rust
error[E0277]: `(dyn arrow_array::builder::ArrayBuilder + 'static)` cannot be
shared between threads safely
--> src/main.rs:89:5
|
89 | tokio::spawn(f);
| ^^^^^^^^^^^^ `(dyn arrow_array::builder::ArrayBuilder + 'static)`
cannot be shared between threads safely
|
= help: the trait `Sync` is not implemented for `(dyn
arrow_array::builder::ArrayBuilder + 'static)`
= note: required for `Unique<(dyn arrow_array::builder::ArrayBuilder +
'static)>` to implement `Sync`
note: required because it appears within the type `Box<dyn ArrayBuilder>`
-->
/Users/dvic/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/alloc/src/boxed.rs:195:12
|
195 | pub struct Box<
| ^^^
= note: required for `Unique<Box<(dyn arrow_array::builder::ArrayBuilder
+ 'static)>>` to implement `Sync`
note: required because it appears within the type `RawVec<Box<dyn
ArrayBuilder>>`
-->
/Users/dvic/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/alloc/src/raw_vec.rs:51:19
|
51 | pub(crate) struct RawVec<T, A: Allocator = Global> {
| ^^^^^^
note: required because it appears within the type `Vec<Box<dyn
ArrayBuilder>>`
-->
/Users/dvic/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/alloc/src/vec/mod.rs:396:12
|
396 | pub struct Vec<T, #[unstable(feature = "allocator_api", issue =
"32838")] A: Allocator = Global> {
| ^^^
note: required because it appears within the type `UpsertsBuilder`
--> /Users/dvic/Development/qamion/src/ticketmatic.rs:196:8
|
196 | struct UpsertsBuilder {
| ^^^^^^^^^^^^^^
note: required because it appears within the type `TableState<1>`
```
`UpsertsBuilder` contains `Vec<Box<dyn ArrayBuilder>>`
--
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]