[
https://issues.apache.org/jira/browse/SPARK-20289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15964005#comment-15964005
]
Apache Spark commented on SPARK-20289:
--------------------------------------
User 'rxin' has created a pull request for this issue:
https://github.com/apache/spark/pull/17604
> 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
>
> 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: [email protected]
For additional commands, e-mail: [email protected]