aboutsummaryrefslogtreecommitdiff
path: root/sql/core/src/test
diff options
context:
space:
mode:
authorReynold Xin <rxin@databricks.com>2016-07-31 18:21:06 -0700
committerYin Huai <yhuai@databricks.com>2016-07-31 18:21:06 -0700
commit579fbcf3bd9717003025caecc0c0b85bcff7ac7f (patch)
tree07ccd513f163764339bfc5b404d1cc8302968888 /sql/core/src/test
parent301fb0d7236eb55d53c9cd60804a2d755b4ad3b2 (diff)
downloadspark-579fbcf3bd9717003025caecc0c0b85bcff7ac7f.tar.gz
spark-579fbcf3bd9717003025caecc0c0b85bcff7ac7f.tar.bz2
spark-579fbcf3bd9717003025caecc0c0b85bcff7ac7f.zip
[SPARK-16805][SQL] Log timezone when query result does not match
## What changes were proposed in this pull request? It is useful to log the timezone when query result does not match, especially on build machines that have different timezone from AMPLab Jenkins. ## How was this patch tested? This is a test-only change. Author: Reynold Xin <rxin@databricks.com> Closes #14413 from rxin/SPARK-16805.
Diffstat (limited to 'sql/core/src/test')
-rw-r--r--sql/core/src/test/scala/org/apache/spark/sql/QueryTest.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/core/src/test/scala/org/apache/spark/sql/QueryTest.scala b/sql/core/src/test/scala/org/apache/spark/sql/QueryTest.scala
index a9d0fcf1b6..3437586746 100644
--- a/sql/core/src/test/scala/org/apache/spark/sql/QueryTest.scala
+++ b/sql/core/src/test/scala/org/apache/spark/sql/QueryTest.scala
@@ -401,6 +401,9 @@ object QueryTest {
sameRows(expectedAnswer, sparkAnswer, isSorted).map { results =>
s"""
|Results do not match for query:
+ |Timezone: ${TimeZone.getDefault}
+ |Timezone Env: ${sys.env("TZ")}
+ |
|${df.queryExecution}
|== Results ==
|$results