diff options
author | Reynold Xin <rxin@databricks.com> | 2016-07-31 18:21:06 -0700 |
---|---|---|
committer | Yin Huai <yhuai@databricks.com> | 2016-07-31 18:21:06 -0700 |
commit | 579fbcf3bd9717003025caecc0c0b85bcff7ac7f (patch) | |
tree | 07ccd513f163764339bfc5b404d1cc8302968888 | |
parent | 301fb0d7236eb55d53c9cd60804a2d755b4ad3b2 (diff) | |
download | spark-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.
-rw-r--r-- | sql/core/src/test/scala/org/apache/spark/sql/QueryTest.scala | 3 |
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 |