Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-1890

Fix piggybank unit test TestAvroStorage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.0
    • 0.9.0, 0.10.0
    • impl
    • Reviewed
    • Fixed AvroStorage unit tests.

    Description

      TestAvroStorage fail on trunk. There are two reasons:
      1. After PIG-1680, we call LoadFunc.setLocation one more time.
      2. The schema for AvroStorage seems to be wrong. For example, in first test case testArrayDefault, the schema for "in" is set to "PIG_WRAPPER: (FIELD:

      {PIG_WRAPPER: (ARRAY_ELEM: float)}

      )". It seems PIG_WRAPPER is redundant. This issue is hidden until PIG-1188 checked in.

      Attachments

        1. PIG-1890-1.patch
          2 kB
          Daniel Dai
        2. PIG-1890-2.patch
          15 kB
          Ken Goodhope
        3. PIG-1890-3.patch
          17 kB
          Ken Goodhope
        4. pig_setloc_avro.txt
          16 kB
          Patrick D. Hunt
        5. PIG-1890-4.patch
          19 kB
          Ken Goodhope

        Activity

          People

            kengoodhope Ken Goodhope
            daijy Daniel Dai
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: