liukun4515 commented on pull request #1104:
URL: https://github.com/apache/arrow-rs/pull/1104#issuecomment-1003567476
We will meet the error If we don't do these changes.
```
error[E0599]: the function or associated item `new` exists for struct
`builder::BufferBuilder<datatypes::types::TimestampSecondType>`, but its trait
bounds were not satisfied
--> arrow/src/array/mod.rs:507:39
|
507 | TimestampSecondBufferBuilder::new(10);
| ^^^ function or associated item
cannot be called on
`builder::BufferBuilder<datatypes::types::TimestampSecondType>` due to
unsatisfied trait bounds
|
::: arrow/src/array/builder.rs:83:1
|
83 | pub struct BufferBuilder<T: ArrowNativeType> {
| -------------------------------------------- function or associated
item `new` not found for this
|
::: arrow/src/datatypes/types.rs:32:9
|
32 | pub struct $name {}
| ---------------- doesn't satisfy `_: native::ArrowNativeType`
|
= note: the following trait bounds were not satisfied:
`datatypes::types::TimestampSecondType: native::ArrowNativeType`
note: the following trait must be implemented
--> arrow/src/datatypes/native.rs:31:1
|
31 | / pub trait ArrowNativeType:
32 | | std::fmt::Debug
33 | | + Send
34 | | + Sync
... |
75 | | }
76 | | }
| |_^
```
@alamb
--
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]