Reynold Xin created SPARK-20289:
-----------------------------------
Summary: 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]