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

        Hide
        Olga Natkovich added a comment -

        test patch results:

        [exec] +1 overall.
        [exec]
        [exec] +1 @author. The patch does not contain any @author tags.
        [exec]
        [exec] +1 tests included. The patch appears to include 3 new or modified tests.
        [exec]
        [exec] +1 javadoc. The javadoc tool did not generate any warning messages.
        [exec]
        [exec] +1 javac. The applied patch does not increase the total number of javac compiler warnings.
        [exec]
        [exec] +1 findbugs. The patch does not introduce any new Findbugs warnings.
        [exec]
        [exec] +1 release audit. The applied patch does not increase the total number of release audit warnings.
        [exec]

        Show
        Olga Natkovich added a comment - test patch results: [exec] +1 overall. [exec] [exec] +1 @author. The patch does not contain any @author tags. [exec] [exec] +1 tests included. The patch appears to include 3 new or modified tests. [exec] [exec] +1 javadoc. The javadoc tool did not generate any warning messages. [exec] [exec] +1 javac. The applied patch does not increase the total number of javac compiler warnings. [exec] [exec] +1 findbugs. The patch does not introduce any new Findbugs warnings. [exec] [exec] +1 release audit. The applied patch does not increase the total number of release audit warnings. [exec]
        Hide
        Olga Natkovich added a comment -

        Will run commit tests and then it is ready for a review

        Show
        Olga Natkovich added a comment - Will run commit tests and then it is ready for a review
        Hide
        Olga Natkovich added a comment -

        all tests passed. can one of the committers please review

        Show
        Olga Natkovich added a comment - all tests passed. can one of the committers please review
        Hide
        Daniel Dai added a comment -

        +1

        Show
        Daniel Dai added a comment - +1
        Hide
        Olga Natkovich added a comment -

        patch committed

        Show
        Olga Natkovich added a comment - patch committed

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development