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-9517) BytesToBytesMap should encode data the same way as UnsafeExternalSorter
Date Sat, 01 Aug 2015 02:24:04 GMT

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

Apache Spark commented on SPARK-9517:
-------------------------------------

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

> BytesToBytesMap should encode data the same way as UnsafeExternalSorter
> -----------------------------------------------------------------------
>
>                 Key: SPARK-9517
>                 URL: https://issues.apache.org/jira/browse/SPARK-9517
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>            Reporter: Reynold Xin
>            Assignee: Reynold Xin
>
> BytesToBytesMap current encodes key/value data in the following format:
> {code}
> 8B key length, key data, 8B value length, value data
> {code}
> UnsafeExternalSorter, on the other hand, encodes data this way:
> {code}
> 4B record length, data
> {code}
> As a result, we cannot pass records encoded by BytesToBytesMap directly into UnsafeExternalSorter
for sorting. However, if we rearrange data slightly, we can then pass the key/value records
directly into UnsafeExternalSorter:
> {code}
> 4B key+value length, 4B key length, key data, value data
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message