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)