You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2019/09/16 20:58:40 UTC

[GitHub] [incubator-iceberg] ashleycoxley opened a new issue #475: TimestampWriter isn't being used

ashleycoxley opened a new issue #475: TimestampWriter isn't being used
URL: https://github.com/apache/incubator-iceberg/issues/475
 
 
   When trying to write to a field with type `Types.TimestampType.withoutZone()`, I'm getting the exception 
   `java.time.LocalDateTime cannot be cast to java.time.OffsetDateTime`. This appears to be due to a case match miss in the `GenericParquetWriter` - for all primitives of type `TIMESTAMP_MICROS`, the `TimestamptzWriter` is returned. I believe it should only be returned when `shouldAdjustToUTC` is true; and the `TimestampWriter` returned otherwise  (similar to the implementation in `GenericParquetReaders`).

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org