From 579fbcf3bd9717003025caecc0c0b85bcff7ac7f Mon Sep 17 00:00:00 2001 From: Reynold Xin Date: Sun, 31 Jul 2016 18:21:06 -0700 Subject: [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 Closes #14413 from rxin/SPARK-16805. --- sql/core/src/test/scala/org/apache/spark/sql/QueryTest.scala | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sql/core/src/test') 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 -- cgit v1.2.3