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

Failed to retrieve map values from data loaded by AvroStorage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.12.0
    • 0.12.0
    • impl
    • None
    • Patch Available

    Description

      Running the following script:
      a = load './newavro/data/avro/EmployeeMapF.ser' USING AvroStorage();
      dump a;
      c = foreach a generate name, office, 'Toyota', cars#'Toyota' as toyota, 'Mazda', cars#'Mazda', 'Nissan', cars#'Nissan' as nissan;
      Although object a has all the data loaded, c cannot retrieve the map values, column 4,6,8 are empty in the result.
      The map keys is of class Utf8, but the keys used to retrieve data is String, that is the reason why we cannot retrieve the values. The patch fix this problem.

      Attachments

        1. PIG-3420_08152013.patch
          7 kB
          Yuanli Dong

        Activity

          People

            yuanlid Yuanli Dong
            explosion7 Yuanli Dong
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: