avro icon indicating copy to clipboard operation
avro copied to clipboard

Represent long with logicalType timestamp-millis as time.Time

Open gubtos opened this issue 1 year ago • 0 comments

I use hamba/avro as avro and after last update (https://github.com/hamba/avro/pull/368) the unmarshal was resulting error the following error to me.

Timestamp: avro: int64 is unsupported for Avro long and logicalType timestamp-millis

I use the following avro definition

"type": {
                "type": "long",
                "logicalType": "timestamp-millis"
            },

If the logicalType was timestamp-*, wouldn't it be better map to time.Time ?

gubtos avatar May 22 '24 13:05 gubtos