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 2012/07/20 23:23:35 UTC

[jira] [Updated] (AVRO-823) Support Avro data files in C#

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

Doug Cutting updated AVRO-823:
------------------------------

    Attachment: AVRO-823.patch

Before we can commit this we need it to build and pass tests.

The existing patch does not apply cleanly for me on Linux, failing on the .csproj files.  The new code also calls methods only in .NET 4.0, not in 3.5.  Here's a version that I think includes the right changes for the .csproj files in a patch that applies cleanly.  It also attempts to upgrade Avro.NET to .NET 4.0.  However a few tests still fail.  It would be best if someone who knows more about Mono were to get tests to pass on Linux and also to weigh in on whether we should upgrade to .NET 4.0 and if so whether I did this correctly.

Note also that I had to upgrade Newtonsoft.Json.dll to a .NET 4.0 version.

Failures I see are:

{noformat}Errors and Failures:
1) Test Failure : Avro.Test.AliasTest.TestAliases("{\"type\":\"record\",\"name\":\"LongList\", \"aliases\":[\"Alias1\"], \"customprop\":\"123456\",\n                   \"fields\":[{\"name\":\"f1\",\"type\":\"long\", \"order\":\"ascending\", \"fprop\":\"faaa\" },\n                    {\"name\":\"f2\",\"type\": \"int\"}]}",True)
     Expected: False
  But was:  True

at Avro.Test.AliasTest.TestAliases (System.String s, Boolean valid) [0x00000] in <filename unknown>:0

2) Test Failure : Avro.Test.AliasTest.TestAliases("{\"type\":\"record\",\"name\":\"LongList\", \"namespace\":\"com\", \"aliases\":[\"c\",\"foo.y\"],\n                   \"fields\":\n                    [{\"name\":\"f1\",\"type\":\"long\", \"extraprop\":\"important\", \"id\":\"1029\", \"aliases\":[\"a\",\"b\",\"c\"] },\n                     {\"name\":\"f2\",\"type\": \"int\"}]}",True)
     Expected: False
  But was:  True

at Avro.Test.AliasTest.TestAliases (System.String s, Boolean valid) [0x00000] in <filename unknown>:0

3) Test Failure : Avro.Test.File.FileTests.TestPartialRead("{\"type\":\"record\",\"name\":\"Foo\",\"namespace\":\"Avro.Test.File\",\"fields\":[{\"name\":\"name\",\"type\":[\"null\",\"string\"]},{\"name\":\"age\",\"type\":\"int\"}]}",Deflate,888,165)
     Error performing partial read after position: 888
  Expected: True
  But was:  False

at Avro.Test.File.FileTests.TestPartialRead (System.String schemaStr, Type codecType, Int32 position, Int32 expectedRecords) [0x00000] in <filename unknown>:0
{noformat}
                
> Support Avro data files in C#
> -----------------------------
>
>                 Key: AVRO-823
>                 URL: https://issues.apache.org/jira/browse/AVRO-823
>             Project: Avro
>          Issue Type: New Feature
>          Components: csharp
>    Affects Versions: 1.5.1, 1.6.3, 1.7.0
>            Reporter: Patrick Angeles
>              Labels: c-sharp,, container, file, object
>         Attachments: AVRO-823.patch, AVRO-823.patch
>
>
> Currently, the C# implementation does not handle reading and writing of Avro data files.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira