Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Represent long with logicalType timestamp-millis as time.Time #138

Closed
gubtos opened this issue May 22, 2024 · 1 comment
Closed

Represent long with logicalType timestamp-millis as time.Time #138

gubtos opened this issue May 22, 2024 · 1 comment

Comments

@gubtos
Copy link

gubtos commented May 22, 2024

I use hamba/avro as avro and after last update (hamba/avro#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
Copy link
Author

gubtos commented Sep 9, 2024

fixed with hamba/avro#443

@gubtos gubtos closed this as completed Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant