Pig
  1. Pig
  2. PIG-2257

AvroStorage doesn't recognize schema_file field when JSON isn't used in the constructor

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.11
    • Component/s: None
    • Labels:
      None

      Description

      PIG-2195 introduced the schema_file constructor param to AvroStorage. This field is currently only supported when passing constructor data via JSON though (a different code path is used when constructor data is a String array).

        Activity

        Hide
        Bill Graham added a comment -

        Attaching patch which fixes this issue.

        Show
        Bill Graham added a comment - Attaching patch which fixes this issue.
        Hide
        Dmitriy V. Ryaboy added a comment -

        Whoa, ancient times. Peeps who work with Avro, do you need this?

        Show
        Dmitriy V. Ryaboy added a comment - Whoa, ancient times. Peeps who work with Avro, do you need this?
        Hide
        Bill Graham added a comment -

        This is actually a bug that should be patched. All constructs to AvroStorage should work whether being passed as json or a string array, but schema_file was only implemented in the former.

        Show
        Bill Graham added a comment - This is actually a bug that should be patched. All constructs to AvroStorage should work whether being passed as json or a string array, but schema_file was only implemented in the former.

          People

          • Assignee:
            Bill Graham
            Reporter:
            Bill Graham
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development