Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-29045][SQL][TESTS] Drop table to avoid test failure in SQLMetricsSuite #25752

Closed
wants to merge 1 commit into from

Conversation

LantaoJin
Copy link
Contributor

What changes were proposed in this pull request?

In method SQLMetricsTestUtils.testMetricsDynamicPartition(), there is a CREATE TABLE sentence without withTable block. It causes test failure if use same table name in other unit tests.

Why are the changes needed?

To avoid "table already exists" in tests.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Exist UT

@LantaoJin
Copy link
Contributor Author

cc @wangyum

@wangyum
Copy link
Member

wangyum commented Sep 11, 2019

ok to test

@SparkQA
Copy link

SparkQA commented Sep 11, 2019

Test build #110453 has finished for PR 25752 at commit 3dcd611.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@wangyum wangyum closed this in 6768431 Sep 12, 2019
@wangyum
Copy link
Member

wangyum commented Sep 12, 2019

Merged to master.

@dongjoon-hyun
Copy link
Member

Thank you, @LantaoJin , @wangyum , @HyukjinKwon .
Since branch-2.4 is LTS for 2.x releases, I'll backport this to branch-2.4, too.

dongjoon-hyun pushed a commit that referenced this pull request Sep 14, 2019
…icsSuite

### What changes were proposed in this pull request?

In method `SQLMetricsTestUtils.testMetricsDynamicPartition()`, there is a CREATE TABLE sentence without `withTable` block. It causes test failure if use same table name in other unit tests.

### Why are the changes needed?
To avoid "table already exists" in tests.

### Does this PR introduce any user-facing change?
No

### How was this patch tested?
Exist UT

Closes #25752 from LantaoJin/SPARK-29045.

Authored-by: LantaoJin <[email protected]>
Signed-off-by: Yuming Wang <[email protected]>
PavithraRamachandran pushed a commit to PavithraRamachandran/spark that referenced this pull request Sep 15, 2019
…icsSuite

### What changes were proposed in this pull request?

In method `SQLMetricsTestUtils.testMetricsDynamicPartition()`, there is a CREATE TABLE sentence without `withTable` block. It causes test failure if use same table name in other unit tests.

### Why are the changes needed?
To avoid "table already exists" in tests.

### Does this PR introduce any user-facing change?
No

### How was this patch tested?
Exist UT

Closes apache#25752 from LantaoJin/SPARK-29045.

Authored-by: LantaoJin <[email protected]>
Signed-off-by: Yuming Wang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants