martin-g commented on issue #476:
URL: https://github.com/apache/avro-rs/issues/476#issuecomment-3943099839
And here is a Python script that confirms the same:
1. pyproject
```toml
[project]
name = "avrotest"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"avro>=1.12.1",
]
```
2. main.py
```py
import avro.schema
def main():
schema = avro.schema.parse(open("/tmp/schema.avsc", "rb").read())
print(schema)
if __name__ == "__main__":
main()
```
3. Output
```
/private/tmp/avrotest/avrotest/.venv/lib/python3.12/site-packages/avro/schema.py:1233:
IgnoredLogicalType: Unknown custom-enum, using enum.
warnings.warn(avro.errors.IgnoredLogicalType(f"Unknown {logical_type},
using {type_}."))
{"type": "enum", "logicalType": "custom-enum", "name": "customEnum",
"namespace": "org.apache.avro.codegentest.testdata", "symbols": ["ONE", "TWO",
"THREE"]}
```
--
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]