GitHub user WeichenXu123 opened a pull request:
https://github.com/apache/spark/pull/15097
[SPARK-17540][SparkR][Spark Core] fix SparkR array serde type problem when
length == 0
## What changes were proposed in this pull request?
fix SparkR array serde type problem when length == 0
when length == 0 mark the data type as NULL,
and scala side will check case element type == NULL and generate
Array[Nothing] with length == 0
because in scala `Nothing` type is sub-type of any other types,
so that scala Array[Nothing] can be assigned to any variable with type
Array[_].
so that this problem can be solved ideally.
## How was this patch tested?
(Please explain how this patch was tested. E.g. unit tests, integration
tests, manual tests)
(If this patch involves UI changes, please attach a screenshot; otherwise,
remove this)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/WeichenXu123/spark fix_r_pass_zero_array_type
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/15097.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #15097
----
commit 08e011f1d38682dcedc93f4ef8b038ee13fbe5cb
Author: WeichenXu <[email protected]>
Date: 2016-09-14T15:14:59Z
update
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]