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

Need to generate empty tuples and bags as a part of Pig Syntax

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 0.2.0
    • None
    • None
    • None

    Description

      There is a need to sometimes generate empty tuples and bags as a part of the Pig syntax rather than using UDF's

      a = load 'mydata.txt' using PigStorage();
      b =foreach a generate ( ) as emptytuple;
      c = foreach a generate { } as emptybag;
      dump c;
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              viraj Viraj Bhat
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: