pacman82 commented on issue #2984:
URL: https://github.com/apache/arrow-rs/issues/2984#issuecomment-1297421411
Here is a minimal reproducing example:
```rust
use parquet::{
basic::{LogicalType, Repetition},
data_type::{DataType, Int32Type},
format::{MilliSeconds, TimeUnit},
schema::types::Type,
};
fn main() {
Type::primitive_type_builder("field_name",
Int32Type::get_physical_type())
.with_logical_type(Some(LogicalType::Timestamp {
is_adjusted_to_u_t_c: false,
unit: TimeUnit::MILLIS(MilliSeconds {}),
}))
.with_repetition(Repetition::OPTIONAL)
.build()
.unwrap();
}
```
It works if I exchange the type for `Int64Type` but then I run into the
original issue of the converted type being off.
--
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]