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

Turn off union optimizer if there is PARALLEL clause in union in Tez

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.16.0
    • None
    • None
    • Reviewed

    Description

      In mapreduce, if PARALLEL clause was specified on UNION it was ignored as it was a map operation and split size was used. In Tez, when union optimizer is turned off it is a reduce side operation and we should let user control parallelism instead of relying on just auto-parallelism. This is specifically useful when user needs to control the number of output files.

      data = UNION A, B, C, D, E, F, G, H, I, J;
      store data;

      In the above case instead of manually controlling parallelism of A to J aliases to achieve desired parallelism the UNION clause can specify the desired parallelism using PARALLEL. i.e

      data = UNION A, B, C, D, E, F, G, H, I, J PARALLEL 50;

      This only works today if we set pig.tez.opt.union=false. We should automatically and selectively turn off union optimization for those unions that have PARALLEL clause.

      Attachments

        1. PIG-4885-1.patch
          10 kB
          Rohini Palaniswamy

        Activity

          People

            rohini Rohini Palaniswamy
            rohini Rohini Palaniswamy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: