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

TOMAP builtin function

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9.0
    • None
    • None
    • Hide
      TOMAP function constructs a map from arguments passed to it.

      Example:

      ....
      B = foreach A generate TOMAP(key1, val1, key2, val2, key3, val3);

      ....
      Show
      TOMAP function constructs a map from arguments passed to it. Example: .... B = foreach A generate TOMAP(key1, val1, key2, val2, key3, val3); ....

    Description

      While doing some testing, I needed a function that generated a map. I created TOMAP that is similar to TOTUPLE and TOBAG and want to contribute it to builtin in case it is useful to others

      Attachments

        1. PIG-1809.patch
          4 kB
          Olga Natkovich

        Activity

          People

            olgan Olga Natkovich
            olgan Olga Natkovich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: