avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nigel Longton (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AVRO-1483) Csharp library doesnt publicly expose way to create ArraySchema objects
Date Fri, 14 Mar 2014 20:00:45 GMT

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

Nigel Longton updated AVRO-1483:
--------------------------------

    Attachment: AVRO-1483-test.patch

test for CreateArray

> 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-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
(v6.2#6252)

Mime
View raw message