sergiimk opened a new issue, #4308: URL: https://github.com/apache/arrow-rs/issues/4308
**Describe the bug** <!-- A clear and concise description of what the bug is. --> [Parquet spec prescribes](https://github.com/apache/parquet-format/blob/master/LogicalTypes.md#deprecated-timestamp-convertedtype) that for backward compatibility the legacy converted type `TIMESTAMP_MILLIS` should be interpreted as logical type `TimestampType (isAdjustedToUTC = true, unit = MILLIS)`, but that's currently not the case. **To Reproduce** <!-- Steps to reproduce the behavior: --> Read a modern Parquet file with schema: ``` message x { REQUIRED INT64 system_time (TIMESTAMP(MILLIS,true)); } ```` observe data type `Timestamp(Millisecond, Some("UTC"))` Read an old Parquet file with schema: ``` message x { REQUIRED INT64 system_time (TIMESTAMP_MILLIS); } ```` observe data type: `Timestamp(Millisecond, None)` `TIMESTAMP_MILLIS` gets incorrectly interpreted as naive/local timestamp. **Expected behavior** <!-- A clear and concise description of what you expected to happen. --> Because spec prescribes that `TIMESTAMP_MILLIS` should be interpreted as `TIMESTAMP(MILLIS,true)` I expected to see a timestamp with UTC timezone. **Additional context** <!-- Add any other context about the problem here. --> [These lines seem to be the source of the problem](https://github.com/apache/arrow-rs/blob/ea008922445d84d957cf3f89df793187c22d82d8/parquet/src/arrow/schema/primitive.rs#L209-L214) -- 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]
