XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: tez-branch
    • Component/s: tez
    • Labels:
      None

      Description

      This is a followup for PIG-3534. In PIG-3534, we use 5 vertexes (3 DAGs) to implement an order-by. We can optimize to use 4 vertexes in 1 DAG:

      vertex 1: close the current vertex, create input + samples input
      vertex 2: aggregate samples to create quantiles
      vertex 3: use quantiles to partition input
      vertex 4: sort input after partition

      The DAG is:

      vertex 1   ------------------>  vertex 3 ------> vertex 4
                 \--> vertex 2 ---/
      

        Attachments

        1. PIG-3634-0.patch
          52 kB
          Daniel Dai
        2. PIG-3634-1.patch
          51 kB
          Daniel Dai
        3. PIG-3634-2.patch
          51 kB
          Daniel Dai
        4. PIG-3634-3.patch
          64 kB
          Cheolsoo Park

          Issue Links

            Activity

              People

              • Assignee:
                daijy Daniel Dai
                Reporter:
                daijy Daniel Dai
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: