liukun4515 opened a new issue #1103: URL: https://github.com/apache/arrow-rs/issues/1103
**Describe the bug** In definition of `BufferBuilder` is ``` pub struct BufferBuilder<T: ArrowNativeType> ``` If we want to define a new type of BufferBuilder, the T is must be ArrowNativeType. But in some definitions, the T is ArrowPrimitiveType. ``` pub type TimestampSecondBufferBuilder = BufferBuilder<TimestampSecondType>; pub type TimestampMillisecondBufferBuilder = BufferBuilder<TimestampMillisecondType>; pub type TimestampMicrosecondBufferBuilder = BufferBuilder<TimestampMicrosecondType>; pub type TimestampNanosecondBufferBuilder = BufferBuilder<TimestampNanosecondType>; pub type Date32BufferBuilder = BufferBuilder<Date32Type>; pub type Date64BufferBuilder = BufferBuilder<Date64Type>; pub type Time32SecondBufferBuilder = BufferBuilder<Time32SecondType>; pub type Time32MillisecondBufferBuilder = BufferBuilder<Time32MillisecondType>; pub type Time64MicrosecondBufferBuilder = BufferBuilder<Time64MicrosecondType>; pub type Time64NanosecondBufferBuilder = BufferBuilder<Time64NanosecondType>; pub type IntervalYearMonthBufferBuilder = BufferBuilder<IntervalYearMonthType>; pub type IntervalDayTimeBufferBuilder = BufferBuilder<IntervalDayTimeType>; pub type IntervalMonthDayNanoBufferBuilder = BufferBuilder<IntervalMonthDayNanoType>; pub type DurationSecondBufferBuilder = BufferBuilder<DurationSecondType>; pub type DurationMillisecondBufferBuilder = BufferBuilder<DurationMillisecondType>; pub type DurationMicrosecondBufferBuilder = BufferBuilder<DurationMicrosecondType>; pub type DurationNanosecondBufferBuilder = BufferBuilder<DurationNanosecondType>; ``` **To Reproduce** Steps to reproduce the behavior: **Expected behavior** A clear and concise description of what you expected to happen. **Additional context** We need to fix it by using `ArrowPrimitiveType::Native` -- 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]
