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

Since version 3.2.0, Spark SQL has taken longer to execute "show paritions",probably because of changes introduced by SPARK-35278

    XMLWordPrintableJSON

Details

    Description

      After SPARK-35378 was changed, I noticed that the execution of statements such as ‘show parititions test' became slower.

      The change point is that the execution process changes from ExecutedCommandEnec to CommandResultExec, but ExecutedCommandExec originally implemented the following method

      override def executeToIterator(): Iterator[InternalRow] = sideEffectResult.iterator

      CommandResultExec is not rewritten, so when the hasNext method is executed, a job process is created, resulting in increased time-consuming

      Attachments

        Issue Links

          Activity

            People

              yorksity Qiang Yang
              yorksity Qiang Yang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: