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

degenerate cases for pig operators

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Would be nice if I could write:

      a = UNION b; // evaluates to b
      a = UNION; // evaluates to empty set

      ... and similarly for other operators like JOIN.

      This comes up when automatically generating Pig code for an embedded application. Currently I have to handle these as special cases in the code that generates the Pig commands, which is messy. Worse, as far as I know the empty-union case has no easy work-around – I think I have to resort to creating an empty file and reading it to generate an empty relation.

      Attachments

        Activity

          People

            Unassigned Unassigned
            olston Christopher Olston
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: