Description
In the case of `insert into...select...limit` , `CollectLimitExec` has better execution performance than `GlobalLimit` .
Before:
== Physical Plan ==
Execute InsertIntoHadoopFsRelationCommand ...
+- *(2) GlobalLimit 5
+- Exchange SinglePartition, true, id=#39
+- *(1) LocalLimit 5
+- *(1) ColumnarToRow
+- FileScan ...
After:
== Physical Plan == Execute InsertIntoHadoopFsRelationCommand ... +- CollectLimit 5 +- *(1) ColumnarToRow +- FileScan ....