spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-23875) Create IndexedSeq wrapper for ArrayData
Date Wed, 18 Apr 2018 14:36:00 GMT

    [ https://issues.apache.org/jira/browse/SPARK-23875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16442602#comment-16442602
] 

Apache Spark commented on SPARK-23875:
--------------------------------------

User 'viirya' has created a pull request for this issue:
https://github.com/apache/spark/pull/21099

> 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
>            Assignee: Liang-Chi Hsieh
>            Priority: Major
>             Fix For: 2.4.0
>
>
> 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


Mime
View raw message