Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0
    • Component/s: None
    • Labels:
      None
    • Release Note:
      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

      1. PIG-1809.patch
        4 kB
        Olga Natkovich

        Activity

        Olga Natkovich created issue -
        Olga Natkovich made changes -
        Field Original Value New Value
        Attachment PIG-1809.patch [ 12468619 ]
        Olga Natkovich made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Olga Natkovich made changes -
        Attachment PIG-1809.patch [ 12468619 ]
        Olga Natkovich made changes -
        Attachment PIG-1809.patch [ 12469021 ]
        Olga Natkovich made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Olga Natkovich made changes -
        Release Note TOMAP function constructs a map from arguments passed to it.

        Example:

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

        ....
        Olga Natkovich made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Olga Natkovich
            Reporter:
            Olga Natkovich
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development