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

Script is broken when new line is between GENERATE and FLATTEN

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 0.11
    • None
    • parser
    • None
    • CDH 4.3

    Description

      This script wont' work

      in = LOAD 'in';
      
      out = FOREACH in GENERATE
      FLATTEN({$0, $1}); -- because of new line
      
      dump out;
      

      This script will work:

      in = LOAD 'in';
      
      out = FOREACH in GENERATE FLATTEN({$0, $1}); -- put GENERATE and flatten on one line
      
      dump out;
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            serega_sheypak Sergey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: