diff options
author | Reynold Xin <rxin@databricks.com> | 2017-04-11 11:12:31 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2017-04-11 11:12:31 -0700 |
commit | 123b4fbbc331f116b45f11b9f7ecbe0b0575323d (patch) | |
tree | a39d2ae76e76b5b78a32b2e9f1126a9bf0b78532 /dev/sparktestsupport/modules.py | |
parent | cd91f967145909852d9af09b10b80f86ed05edb5 (diff) | |
download | spark-123b4fbbc331f116b45f11b9f7ecbe0b0575323d.tar.gz spark-123b4fbbc331f116b45f11b9f7ecbe0b0575323d.tar.bz2 spark-123b4fbbc331f116b45f11b9f7ecbe0b0575323d.zip |
[SPARK-20289][SQL] Use StaticInvoke to box primitive types
## What changes were proposed in this pull request?
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.
## How was this patch tested?
The change should be covered by existing tests for Dataset encoders.
Author: Reynold Xin <rxin@databricks.com>
Closes #17604 from rxin/SPARK-20289.
Diffstat (limited to 'dev/sparktestsupport/modules.py')
0 files changed, 0 insertions, 0 deletions