[ 
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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to