[ 
https://issues.apache.org/jira/browse/AVRO-2935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joseph Glanville resolved AVRO-2935.
------------------------------------
    Resolution: Abandoned

Appears this is actually implemented after looking at the tests! You need to 
call `addLogicalTypeConversion` on the ProtobufData instance before generating 
the schema.

> Use logical types for Protobuf well known types when doing Avro schema 
> generation
> ---------------------------------------------------------------------------------
>
>                 Key: AVRO-2935
>                 URL: https://issues.apache.org/jira/browse/AVRO-2935
>             Project: Apache Avro
>          Issue Type: Improvement
>          Components: java
>    Affects Versions: 1.10.0
>            Reporter: Joseph Glanville
>            Priority: Minor
>
> When generating schemas from Protobuf descriptors Protobuf well known types 
> like Timestamp are coverted to Avro long type without logical type 
> annotation, i.e timestamp-millis/micros etc.
> Supporting this would make the generated schemas more idiomatic and better 
> integrate with systems that want to consume the converted data without losing 
> metadata about timestamp fields etc.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to