spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <>
Subject [jira] [Assigned] (SPARK-26878) does not handle maps with array keys correctly
Date Thu, 14 Feb 2019 13:42:00 GMT


Apache Spark reassigned SPARK-26878:

    Assignee:     (was: Apache Spark)

> does not handle maps with array keys correctly
> ----------------------------------------------------------------
>                 Key: SPARK-26878
>                 URL:
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL, Tests
>    Affects Versions: 2.4.0
>            Reporter: Ala Luszczak
>            Priority: Major
> The current strategy for comparing Maps is sorting the (key, value) tuples by _.toString,
zipping tuples from both maps together, and then comparing tuples within each of the pairs
> See:
> This is not ideal for byte arrays. The string representations of byte arrays looks like
“[B@7d263ddc” and has nothing to do with values actually contained within the array.
> Hence, if a map has byte array keys, then random values get compared with each other,
which can result in false negatives.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message