Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-39679

TakeOrderedAndProjectExec should respect child output ordering

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • SQL
    • None

    Description

      TakeOrderedAndProjectExec should respect child output ordering to avoid unnecessary sort. For example:  TakeOrderedAndProjectExec on the top of SortMergeJoin.

      SELECT * FROM t1 JOIN t2 ON t1.c1 = t2.c2 ORDER BY t1.c1 LIMIT 100;
      

      Attachments

        Activity

          People

            ulysses XiDuo You
            ulysses XiDuo You
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: