Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.0.0
-
None
Description
In logical plan, SerializeFromObject for an array always use GenericArrayData as a destination. UnsafeArrayData could be used for an primitive array. This is a simple approach to solve issues that are addressed by SPARK-16043.
Here is a motivating example.
sparkContext.parallelize(Seq(Array(1)), 1).toDS.map(e => e).show
Attachments
Issue Links
- is duplicated by
-
SPARK-16215 Reduce runtime overhead of a program that writes an primitive array in Dataframe/Dataset
- Resolved
- links to