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 2017/04/11 18:13:41 UTC
[jira] [Resolved] (SPARK-20289) Use StaticInvoke rather than
NewInstance for boxing primitive types
[ https://issues.apache.org/jira/browse/SPARK-20289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Reynold Xin resolved SPARK-20289.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.2.0
> Use StaticInvoke rather than NewInstance for boxing primitive types
> -------------------------------------------------------------------
>
> Key: SPARK-20289
> URL: https://issues.apache.org/jira/browse/SPARK-20289
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 2.1.0
> Reporter: Reynold Xin
> Assignee: Reynold Xin
> Fix For: 2.2.0
>
>
> Dataset typed API currently uses NewInstance to box primitive types (i.e. calling the constructor). Instead, it'd be slightly more idiomatic in Java to use PrimitiveType.valueOf, which can be invoked using StaticInvoke expression.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org