Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-998 revisit frontend logic and pig-latin semantics
  3. PIG-999

sorting on map-value fails if map-value is not of bytearray type

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0
    • Component/s: None
    • Labels:
      None

      Description

      When query execution plan is created by pig, it assumes the type to be bytearray because there is no schema information associated with map fields.
      But at run time, the loader might return the actual type. This results in a ClassCastException.
      This issue points to the larger issue of the way pig is handling types for map-value.

      This issue should be fixed in the context of revisiting the frontend logic and pig-latin semantics.

      This is related to PIG-880 . The patch in PIG-880 changed PigStorage to always return bytearray for map values to work around this, but other loaders like BinStorage can return the actual type causing this issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gates Alan Gates
                Reporter:
                thejas Thejas Nair
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: