[
https://issues.apache.org/jira/browse/SPARK-13227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Reynold Xin updated SPARK-13227:
--------------------------------
Fix Version/s: 1.6.2
> Risky apply() in OpenHashMap
> ----------------------------
>
> Key: SPARK-13227
> URL: https://issues.apache.org/jira/browse/SPARK-13227
> Project: Spark
> Issue Type: Bug
> Components: Spark Core
> Affects Versions: 1.6.0
> Reporter: Nan Zhu
> Assignee: Nan Zhu
> Priority: Minor
> Fix For: 1.6.2, 2.0.0
>
>
> It might confuse the future developers when they use OpenHashMap.apply() with
> a numeric value type.
> null.asInstance[Int], null.asInstance[Long], null.asInstace[Float] and
> null.asInstance[Double] will return 0/0.0/0L, which might confuse the
> developer if the value set contains 0/0.0/0L with an existing key
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]