GitHub user kiszk opened a pull request:
https://github.com/apache/spark/pull/19159
[TEST]: fix flaky test: "alter table: rename cached table" in
InMemoryCatalogedDDLSuite
## What changes were proposed in this pull request?
This PR fixes flaky test `InMemoryCatalogedDDLSuite "alter table: rename
cached table"`.
Since this test validates distributed DataFrame, the result should be
checked by using `checkAnswer`. The original version used `df.collect().Seq`
method that does not guaranty an order of each element of the result.
## How was this patch tested?
Use existing test case
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/kiszk/spark SPARK-21946
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/19159.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 #19159
----
commit 7a478918710627f5d0df973f059b07d8cf17bd51
Author: Kazuaki Ishizaki <[email protected]>
Date: 2017-09-08T06:06:47Z
use checkAnswer to validate results of DataFrame
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]