[
https://issues.apache.org/jira/browse/AVRO-3476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17517122#comment-17517122
]
Eric commented on AVRO-3476:
----------------------------
Hi [~kojiromike] , here is a simple test case:
{code:python}
def test_bug():
import avro.schema
avro_schema_string = """{ "type": "long", "logicalType":
"local-timestamp-micros", "_nullable": false }"""
avro_schema = avro.schema.parse(avro_schema_string) {code}
when executing this test, you will get the following output:
.../venv/lib/python3.8/site-packages/avro/schema.py:1048: IgnoredLogicalType:
Unknown local-timestamp-micros, using long.
warnings.warn(IgnoredLogicalType("Unknown {}, using
{}.".format(logical_type, type_)))
> Python implementation does not support local-timestamp-micros and
> local-timestamp-millis
> ----------------------------------------------------------------------------------------
>
> Key: AVRO-3476
> URL: https://issues.apache.org/jira/browse/AVRO-3476
> Project: Apache Avro
> Issue Type: Bug
> Components: python
> Affects Versions: 1.11.0
> Reporter: Eric
> Priority: Major
>
> Even though they are present in the spec
> ([https://avro.apache.org/docs/current/spec.html#Local+timestamp+%28millisecond+precision%29),]
> the Python implementation does not support logical types
> local-timestamp-micros and local-timestamp-millis.
> When trying to use them, you get the following:
> .../lib/python3.8/site-packages/avro/schema.py:1048: IgnoredLogicalType:
> Unknown local-timestamp-micros, using long.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)