You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by fe...@apache.org on 2017/05/08 06:10:23 UTC

spark git commit: [SPARK-20626][SPARKR] address date test warning with timezone on windows

Repository: spark
Updated Branches:
  refs/heads/master 22691556e -> c24bdaab5


[SPARK-20626][SPARKR] address date test warning with timezone on windows

## What changes were proposed in this pull request?

set timezone on windows

## How was this patch tested?

unit test, AppVeyor

Author: Felix Cheung <fe...@hotmail.com>

Closes #17892 from felixcheung/rtimestamptest.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/c24bdaab
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/c24bdaab
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/c24bdaab

Branch: refs/heads/master
Commit: c24bdaab5a234d18b273544cefc44cc4005bf8fc
Parents: 2269155
Author: Felix Cheung <fe...@hotmail.com>
Authored: Sun May 7 23:10:18 2017 -0700
Committer: Felix Cheung <fe...@apache.org>
Committed: Sun May 7 23:10:18 2017 -0700

----------------------------------------------------------------------
 R/pkg/inst/tests/testthat/test_sparkSQL.R | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/c24bdaab/R/pkg/inst/tests/testthat/test_sparkSQL.R
----------------------------------------------------------------------
diff --git a/R/pkg/inst/tests/testthat/test_sparkSQL.R b/R/pkg/inst/tests/testthat/test_sparkSQL.R
index 0856bab..f517ce6 100644
--- a/R/pkg/inst/tests/testthat/test_sparkSQL.R
+++ b/R/pkg/inst/tests/testthat/test_sparkSQL.R
@@ -96,6 +96,10 @@ mockLinesMapType <- c("{\"name\":\"Bob\",\"info\":{\"age\":16,\"height\":176.5}}
 mapTypeJsonPath <- tempfile(pattern = "sparkr-test", fileext = ".tmp")
 writeLines(mockLinesMapType, mapTypeJsonPath)
 
+if (.Platform$OS.type == "windows") {
+  Sys.setenv(TZ = "GMT")
+}
+
 test_that("calling sparkRSQL.init returns existing SQL context", {
   skip_on_cran()
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org