[ 
https://issues.apache.org/jira/browse/AVRO-4058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17883822#comment-17883822
 ] 

Martin Tzvetanov Grigorov commented on AVRO-4058:
-------------------------------------------------

BTW another user posted this on the [mailing 
list|https://lists.apache.org/thread/7r0nnr9t3yz3q10d0bol12hxtgjlfvo1]:
{code:java}
This is similar to https://issues.apache.org/jira/browse/AVRO-4026 which
has a PR here https://github.com/apache/avro/pull/3069.
This PR only supports custom attributes on fields, it doesn't address
Arrays though.

1.11.0 and 1.11.1 fully supported custom attributes on fields, but the
installer didn't include the headers needed for release.
https://issues.apache.org/jira/browse/AVRO-3601 fixed this but some
developers felt the built-in JSON DOM wasn't in a state to be exposed, so
it removed support for non-string attributes on fields. To keep with this,
PR 3069 exopses custom attributes as JSON strings so the end user can use
the JSON parser of their choosing to interact with their values.{code}

> Issue in schema preservation
> ----------------------------
>
>                 Key: AVRO-4058
>                 URL: https://issues.apache.org/jira/browse/AVRO-4058
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: c++
>            Reporter: Pascal Ginter
>            Priority: Critical
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> While trying to write an Iceberg Manifest List File, which is essentially an 
> Avro File with some custom attributes I ran into a few issues which to the 
> best of my knowledge are not present in other language implementations or the 
> Avro spec. So far I have encountered these issues with the C++ library
>  * Arrays are not capable of having custom attributes
>  * Attributes in general have to be strings or null. I.e. integers are not 
> supported
> I am willing to address these issues myself by writing PRs for the individual 
> issues (at least for the first one I know how to fix it. Please let me know 
> if there are already any efforts to fix this or reasons why the encountered 
> behavior should be preserved.
>  
> Edit: PR for custom attributes in arrays exists already 
> [https://github.com/apache/avro/pull/3168]



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

Reply via email to