diff options
author | Sun Rui <rui.sun@intel.com> | 2015-10-13 10:02:21 -0700 |
---|---|---|
committer | Shivaram Venkataraman <shivaram@cs.berkeley.edu> | 2015-10-13 10:02:21 -0700 |
commit | 5e3868ba139f5f0b3a33361c6b884594a3ab6421 (patch) | |
tree | a37f40a4f112f452f0eba4dd8ac5b9e1eb805e4b /R/pkg/inst/tests/test_mllib.R | |
parent | d0cc79ccd0b4500bd6b18184a723dabc164e8abd (diff) | |
download | spark-5e3868ba139f5f0b3a33361c6b884594a3ab6421.tar.gz spark-5e3868ba139f5f0b3a33361c6b884594a3ab6421.tar.bz2 spark-5e3868ba139f5f0b3a33361c6b884594a3ab6421.zip |
[SPARK-10051] [SPARKR] Support collecting data of StructType in DataFrame
Two points in this PR:
1. Originally thought was that a named R list is assumed to be a struct in SerDe. But this is problematic because some R functions will implicitly generate named lists that are not intended to be a struct when transferred by SerDe. So SerDe clients have to explicitly mark a names list as struct by changing its class from "list" to "struct".
2. SerDe is in the Spark Core module, and data of StructType is represented as GenricRow which is defined in Spark SQL module. SerDe can't import GenricRow as in maven build Spark SQL module depends on Spark Core module. So this PR adds a registration hook in SerDe to allow SQLUtils in Spark SQL module to register its functions for serialization and deserialization of StructType.
Author: Sun Rui <rui.sun@intel.com>
Closes #8794 from sun-rui/SPARK-10051.
Diffstat (limited to 'R/pkg/inst/tests/test_mllib.R')
0 files changed, 0 insertions, 0 deletions