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

Pig does not call checkOutSpecs() on OutputFormat provided by StoreFunc in the multistore case

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.4.0
    • 0.6.0
    • None
    • None
    • Reviewed

    Description

      A StoreFunc implementation can inform pig of an OutputFormat it uses through the getStoragePreparationClass() method. In a query with multiple stores which gets optimized into a single mapred job, Pig does not call the checkOutputSpecs() method on the outputformat. An example of such a script is:

      a = load 'input.txt';
      b = filter a by $0 < 10;
      store b into 'output1' using StoreWithOutputFormat();
      c = group a by $0;
      d = foreach c generate group, COUNT(a.$0);
      store d into 'output2' using StoreWithOutputFormat();
      

      Attachments

        1. PIG-1063.patch
          11 kB
          Pradeep Kamath

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: