You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Doug Cutting (JIRA)" <ji...@apache.org> on 2014/03/14 20:34:43 UTC

[jira] [Commented] (AVRO-1483) Csharp library doesnt publicly expose way to create ArraySchema objects

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

Doug Cutting commented on AVRO-1483:
------------------------------------

Patch looks reasonable to me.  Can you please provide a test that will fail without this?  Thanks!

> Csharp library doesnt publicly expose way to create ArraySchema objects
> -----------------------------------------------------------------------
>
>                 Key: AVRO-1483
>                 URL: https://issues.apache.org/jira/browse/AVRO-1483
>             Project: Avro
>          Issue Type: Bug
>          Components: csharp
>    Affects Versions: 1.7.6
>            Reporter: Nigel Longton
>            Priority: Minor
>         Attachments: 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
(v6.2#6252)