[ https://issues.apache.org/jira/browse/SPARK-33531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17238257#comment-17238257 ]
Apache Spark commented on SPARK-33531: -------------------------------------- User 'hammertank' has created a pull request for this issue: https://github.com/apache/spark/pull/30489 > [SQL] Avoid shuffle when calling CollectLimitExec#executeToIterator > ------------------------------------------------------------------- > > Key: SPARK-33531 > URL: https://issues.apache.org/jira/browse/SPARK-33531 > Project: Spark > Issue Type: Improvement > Components: SQL > Affects Versions: 2.4.0, 3.0.1 > Reporter: Mori[A]rty > Priority: Major > > CollectLimitExec#executeToIterator should be implemented using > CollectLimitExec#executeCollect to avoid shuffle caused by invoking parent > method SparkPlan#executeToIterator. > When running a SparkThriftServer and > spark.sql.thriftServer.incrementalCollect is enabled, this will lead to a > significant performance issue for SQLs terminated with LIMIT. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org