Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1483

Csharp library doesnt publicly expose way to create ArraySchema objects

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 1.7.6
    • None
    • csharp
    • None

    Description

      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); }

      Attachments

        1. AVRO-1483-test.patch
          5 kB
          Nigel Longton
        2. AVRO-1483.patch
          0.6 kB
          Nigel Longton

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nigell Nigel Longton
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: