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

Guillaume Labourey edited comment on AVRO-4058 at 9/22/24 6:56 AM:
-------------------------------------------------------------------

It is not necessarily a bug. The specification explains that Array _"[support a 
single attribute|https://avro.apache.org/docs/1.12.0/specification/#arrays]"._ 
But the example exposes an unspecified {{_default_}} field.

[~mgrigorov], the specification should be clarified first. It is the same thing 
for Maps


was (Author: JIRAUSER306601):
It is not necessarily a bug. The specification explains that Array _"[support a 
single attribute|https://avro.apache.org/docs/1.12.0/specification/#arrays]"._ 
But the example exposes an unspecified {{_default_}} field.

[~mgrigorov], the specification should be clarifies first. It is the same thing 
for Maps

> 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