[
https://issues.apache.org/jira/browse/AVRO-3197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17417584#comment-17417584
]
Martin Tzvetanov Grigorov commented on AVRO-3197:
-------------------------------------------------
I am not able to read weather2.avro with Java (using
lang/java/tools/src/main/java/org/apache/avro/tool/Main.java with "tojson"
tool). It just logs the following warning:
{code:java}
21/09/20 14:17:10 WARN avro.Schema: Ignored the test.Weather.time.logicalType
property ("timestamp-millis"). It should probably be nested inside the "type"
for the field.{code}
The same is logged for weather.avro but it prints also its content.
> Rust: Disable logical type on failure
> -------------------------------------
>
> Key: AVRO-3197
> URL: https://issues.apache.org/jira/browse/AVRO-3197
> Project: Apache Avro
> Issue Type: Wish
> Reporter: Guðjón
> Assignee: Martin Tzvetanov Grigorov
> Priority: Minor
> Labels: pull-request-available
> Attachments: weather.avro, weather2.avro
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> I have a file containing avro records along with a schema. The schema
> contains a field that unfortunately has the type `String` but logical type
> `timestamp-millis`. The Java implementation of the avro spec doesn't complain
> and simply treats this field as a string, but the rust implementation will
> return an error since the string type doesn't match with the logical type of
> timestamp (long).
> I wonder if there could be a possibility to optionally disregard the logical
> type if this failure is encountered.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)