You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Reynold Xin (JIRA)" <ji...@apache.org> on 2016/04/19 03:52:25 UTC
[jira] [Updated] (SPARK-13227) Risky apply() in OpenHashMap
[ 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org