[
https://issues.apache.org/jira/browse/SPARK-25353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dooyoung Hwang updated SPARK-25353:
-----------------------------------
Description:
In some cases, executeTake in SparkPlan could decode more than necessary.
For example, df.limit(1000).collect() is executed.
+- executeTake in SparkPlan is called with arg 1000.
+- If total rows count from partitions is 2000, executeTake decdoe them
and create array of InternalRow whose size is 2000.
+- Slice the first 1000 rows, and return them. 1000 rows in the rear are
not used.
was:
In some cases, executeTake in SparkPlan could deserialize more than necessary.
For example, df.limit(1000).collect() is executed.
+- executeTake in SparkPlan is called with arg 1000.
+- If total rows count from partitions is 2000, executeTake deserialize
them and create array of InternalRow whose size is 2000.
+- Slice the first 1000 rows, and return them. 1000 rows in the rear are
not used.
> executeTake in SparkPlan could decode rows more than necessary.
> ---------------------------------------------------------------
>
> Key: SPARK-25353
> URL: https://issues.apache.org/jira/browse/SPARK-25353
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 2.3.1
> Reporter: Dooyoung Hwang
> Priority: Major
>
> In some cases, executeTake in SparkPlan could decode more than necessary.
> For example, df.limit(1000).collect() is executed.
> +- executeTake in SparkPlan is called with arg 1000.
> +- If total rows count from partitions is 2000, executeTake decdoe them
> and create array of InternalRow whose size is 2000.
> +- Slice the first 1000 rows, and return them. 1000 rows in the rear
> are not used.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]