[ https://issues.apache.org/jira/browse/SPARK-35355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-35355: ------------------------------------ Assignee: (was: Apache Spark) > 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.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org