spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reynold Xin (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-9517) BytesToBytesMap should encode data the same way as UnsafeExternalSorter
Date Sat, 01 Aug 2015 06:56:04 GMT

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

Reynold Xin resolved SPARK-9517.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 1.5.0

> 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
>             Fix For: 1.5.0
>
>
> 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