You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/08/11 13:05:37 UTC

[GitHub] [beam] slouc commented on issue #20205: AvroUtils is converting incorrectly LogicalType Timestamps from long into Joda DateTimes

slouc commented on issue #20205:
URL: https://github.com/apache/beam/issues/20205#issuecomment-1211963386

   I have the same problem, although I haven't noticed `AvroUtils.toBeamSchema` to be the culprit, but rather [this conversion in the AvroUtils static block](https://github.com/apache/beam/blob/master/sdks/java/core/src/main/java/org/apache/beam/sdk/schemas/utils/AvroUtils.java#L109).
   
   Seems like the same thing though. I have also shown how it can cause runtime exceptions when building the avro record.
   
   Here's a small repo that contains more info and demonstrates the problem: https://github.com/slouc/avro-beam-test.
   
   BTW apache beam is using avro 1.8.2, which is the problematic one. If we instead explicitly bring avro 1.11.1  (latest version right now) into our dependency tree, the problem goes away.


-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org