You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Romain Leroux (Jira)" <ji...@apache.org> on 2024/01/10 22:46:00 UTC
[jira] [Created] (AVRO-3928) Avro Rust cannot parse default int logical-type date in a valid schema
Romain Leroux created AVRO-3928:
-----------------------------------
Summary: Avro Rust cannot parse default int logical-type date in a valid schema
Key: AVRO-3928
URL: https://issues.apache.org/jira/browse/AVRO-3928
Project: Apache Avro
Issue Type: Bug
Components: rust
Reporter: Romain Leroux
This is a follow-up for an issue found through rsgen-avro:
[https://github.com/lerouxrgd/rsgen-avro/pull/60#issuecomment-1884938904]
As mentioned in the thread, apache-avro 0.16.0 cannot parse this schema anymore:
{ "type": "record", "name": "DateLogicalType", "fields": [ { "name": "birthday", "type": {"type": "int", "logicalType": "date"}, "default": 1681601653 } ]
}
The issue is specifically the default value of the birthday field.
However this one is fine:
{ "type": "record", "name": "DateLogicalType", "fields": [ { "name": "release_datetime_micro", "type": {"type": "long", "logicalType": "timestamp-micros"}, "default": 1570903062000000 } ]
}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)