chupaty commented on issue #61:
URL: https://github.com/apache/avro-rs/issues/61#issuecomment-2503805500
I've had a quick check. The rust implementation seems to match java and
mtth/avsc (JS). Python appears to use the other interpretation:
```
import avro.schema
import json
test_schema = '''
{"type": "record", "name": "t", "fields": [ {"type": {"logicalType":
"timestamp-millis", "type": "long"}, "name": "dt"}]}
'''
schema = avro.schema.parse(test_schema)
print(json.dumps(schema.to_canonical_json(),indent=2))
```
Gives:
```
{
"name": "t",
"type": "record",
"fields": [
{
"name": "dt",
"type": {
"type": "long"
}
}
]
}
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]