GitHub user dongjoon-hyun opened a pull request:
https://github.com/apache/spark/pull/14528
[SPARK-16940][SQL] `checkAnswer` should raise `TestFailedException` for
wrong results
## What changes were proposed in this pull request?
This PR fixes the following to make `checkAnswer` raise
`TestFailedException` again instead of `java.util.NoSuchElementException: key
not found: TZ` in the environments without `TZ` variable. Also, this PR adds
`QueryTestSuite` class for testing `QueryTest` itself.
```scala
- |Timezone Env: ${sys.env("TZ")}
+ |Timezone Env: ${sys.env.getOrElse("TZ", "")}
```
## How was this patch tested?
Pass the Jenkins tests with a new test suite.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dongjoon-hyun/spark SPARK-16940
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/14528.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #14528
----
commit 9c4f02b72d72ef78fea6b9c5b9178baab337f774
Author: Dongjoon Hyun <[email protected]>
Date: 2016-08-08T00:40:26Z
[SPARK-16940][SQL] `checkAnswer` should raise `TestFailedException` for
wrong results
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]