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

map lookup on empty key should be disallowed at parse time

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.2.0
    • None
    • None
    • None

    Description

      Currently the following is allowed:

      a = load 'testfile';
      b = foreach a generate $0#'apple', $0#'mango', $0#'', flatten($1#'orange');
      

      Looking up an empty key ($0#'') should not be allowed at parse time

      Attachments

        Issue Links

          Activity

            People

              xuefuz Xuefu Zhang
              pkamath Pradeep Kamath
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: