[
https://issues.apache.org/jira/browse/SPARK-35355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17460375#comment-17460375
]
Apache Spark commented on SPARK-35355:
--------------------------------------
User 'yikf' has created a pull request for this issue:
https://github.com/apache/spark/pull/34916
> improve execution performance in insert...select...limit case
> --------------------------------------------------------------
>
> Key: SPARK-35355
> URL: https://issues.apache.org/jira/browse/SPARK-35355
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 3.0.0
> Reporter: yikf
> Priority: Minor
> Fix For: 3.0.0
>
>
> In the case of `insert into...select...limit` , `CollectLimitExec` has better
> execution performance than `GlobalLimit` .
> Before:
> {code:java}
> == Physical Plan ==
> Execute InsertIntoHadoopFsRelationCommand ...
> +- *(2) GlobalLimit 5
> +- Exchange SinglePartition, true, id=#39
> +- *(1) LocalLimit 5
> +- *(1) ColumnarToRow
> +- FileScan ...
> {code}
> After:
> {code:java}
> == Physical Plan ==
> Execute InsertIntoHadoopFsRelationCommand ...
> +- CollectLimit 5
> +- *(1) ColumnarToRow
> +- FileScan ....
> {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]