diff options
author | Sun Rui <sunrui2016@gmail.com> | 2016-05-08 00:17:36 -0700 |
---|---|---|
committer | Shivaram Venkataraman <shivaram@cs.berkeley.edu> | 2016-05-08 00:17:36 -0700 |
commit | 454ba4d67e782369627dfe60261e6648a27b91a0 (patch) | |
tree | a1aee3eb3a18304039c729e98daf0821f0b4dac2 /R/pkg/inst | |
parent | 6e268b9ee32eb93d1a757c6073dd69e86b9df617 (diff) | |
download | spark-454ba4d67e782369627dfe60261e6648a27b91a0.tar.gz spark-454ba4d67e782369627dfe60261e6648a27b91a0.tar.bz2 spark-454ba4d67e782369627dfe60261e6648a27b91a0.zip |
[SPARK-12479][SPARKR] sparkR collect on GroupedData throws R error "missing value where TRUE/FALSE needed"
## What changes were proposed in this pull request?
This PR is a workaround for NA handling in hash code computation.
This PR is on behalf of paulomagalhaes whose PR is https://github.com/apache/spark/pull/10436
## How was this patch tested?
SparkR unit tests.
Author: Sun Rui <sunrui2016@gmail.com>
Author: ray <ray@rays-MacBook-Air.local>
Closes #12976 from sun-rui/SPARK-12479.
Diffstat (limited to 'R/pkg/inst')
-rw-r--r-- | R/pkg/inst/tests/testthat/test_utils.R | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/R/pkg/inst/tests/testthat/test_utils.R b/R/pkg/inst/tests/testthat/test_utils.R index 01694ab5c4..54d2eca50e 100644 --- a/R/pkg/inst/tests/testthat/test_utils.R +++ b/R/pkg/inst/tests/testthat/test_utils.R @@ -164,3 +164,7 @@ test_that("convertToJSaveMode", { expect_error(convertToJSaveMode("foo"), 'mode should be one of "append", "overwrite", "error", "ignore"') #nolint }) + +test_that("hashCode", { + expect_error(hashCode("bc53d3605e8a5b7de1e8e271c2317645"), NA) +}) |