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

Kalle Niemitalo commented on AVRO-1483:
---------------------------------------

This was already fixed as part of AVRO-2211 and released in Avro 1.11.1.  
Please see the {{public static ArraySchema Create(Schema items, PropertyMap 
customAttributes = null)}} method here: 
[https://github.com/apache/avro/blob/3a9e5a789b5165e0c8c4da799c387fdf84bfb75e/lang/csharp/src/apache/main/Schema/ArraySchema.cs#L50-L59]

> Csharp library doesnt publicly expose way to create ArraySchema objects
> -----------------------------------------------------------------------
>
>                 Key: AVRO-1483
>                 URL: https://issues.apache.org/jira/browse/AVRO-1483
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: csharp
>    Affects Versions: 1.7.6
>            Reporter: Nigel Longton
>            Priority: Minor
>         Attachments: AVRO-1483-test.patch, AVRO-1483.patch
>
>
> In Java one can do Schema.createArray(AvroGeneratedClass.class) to allow for 
> the raw encoding of arrays. In C# the ArraySchema class is internal only and 
> so this doesn't work. Adding the following lines to ArraySchema.cs (as they 
> exist in MapSchema.cs) fixes this.
>         public static ArraySchema CreateArray(Schema type)
>         {
>             return new ArraySchema(type, null);
>         }



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

Reply via email to