You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by "Oscar Westra van Holthe - Kind (Jira)" <ji...@apache.org> on 2025/07/19 10:05:00 UTC

[jira] [Resolved] (AVRO-4165) Ability to specify AvroEncode on class

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

Oscar Westra van Holthe - Kind resolved AVRO-4165.
--------------------------------------------------
    Fix Version/s: 1.13.0
       Resolution: Fixed

> Ability to specify AvroEncode on class
> --------------------------------------
>
>                 Key: AVRO-4165
>                 URL: https://issues.apache.org/jira/browse/AVRO-4165
>             Project: Apache Avro
>          Issue Type: Improvement
>          Components: java
>            Reporter: Ashley Taylor
>            Assignee: Ashley Taylor
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.13.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> Currently, when you want to specify a custom encoding, you need to specify the `AvroEncode` annotation on the field within a class.
> This is great for allowing custom encoding for third-party classes like `Instant`
> However, for classes specified within your application, it would be cleaner to specify this only once on the class, rather than for all its uses.
> This would also allow the object being written directly to the file to support a custom encoder. Currently, you need to wrap it in another object. 
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)