Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-37063 SQL Adaptive Query Execution QA: Phase 2
  3. SPARK-38162

Optimize one row plan in normal and AQE Optimizer

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.3.0
    • SQL
    • None

    Description

      Optimize the plan if its max row is equal to or less than 1 in these cases:

      • if the child of sort max rows less than or equal to 1, remove the sort
      • if the child of local sort max rows per partition less than or equal to 1, remove the local sort
      • if the child of aggregate max rows less than or equal to 1 and it's grouping only (include the rewritten distinct plan), remove the aggregate
      • if the child of aggregate max rows less than or equal to 1, set distinct to false in all aggregate expression

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: