You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Liang-Chi Hsieh (JIRA)" <ji...@apache.org> on 2018/04/05 14:32:00 UTC

[jira] [Updated] (SPARK-23875) Create IndexedSeq wrapper for ArrayData

     [ https://issues.apache.org/jira/browse/SPARK-23875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Liang-Chi Hsieh updated SPARK-23875:
------------------------------------
    Description: We don't have a good way to sequentially access {{UnsafeArrayData}} with a common interface such as Seq. An example is {{MapObject}} where we need to access several sequence collection types together. But {{UnsafeArrayData}} doesn't implement {{ArrayData.array}}. Calling {{toArray}} will copy the entire array. We can provide an {{IndexedSeq}} wrapper for {{ArrayData}}, so we can avoid copying the entire array.  (was: We don't have a good way to sequentially access {{UnsafeArrayData}} with a common interface such as Seq. An example is {{MapObject}} where we need to access several sequence collection types together. But {{UnsafeArrayData}} doesn't implement {{ArrayData.array}}. We can provide an {{IndexedSeq}} wrapper for {{ArrayData}}, so we can avoid copying the entire array.)

> Create IndexedSeq wrapper for ArrayData
> ---------------------------------------
>
>                 Key: SPARK-23875
>                 URL: https://issues.apache.org/jira/browse/SPARK-23875
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.4.0
>            Reporter: Liang-Chi Hsieh
>            Priority: Major
>
> We don't have a good way to sequentially access {{UnsafeArrayData}} with a common interface such as Seq. An example is {{MapObject}} where we need to access several sequence collection types together. But {{UnsafeArrayData}} doesn't implement {{ArrayData.array}}. Calling {{toArray}} will copy the entire array. We can provide an {{IndexedSeq}} wrapper for {{ArrayData}}, so we can avoid copying the entire array.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org