Skip to content
Snippets Groups Projects
Commit 579fbcf3 authored by Reynold Xin's avatar Reynold Xin Committed by Yin Huai
Browse files

[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.
parent 301fb0d7
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment