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-31810][TEST] Fix AlterTableRecoverPartitions test using incorrect api to modify RDD_PARALLEL_LISTING_THRESHOLD #28634

Conversation

prakharjain09
Copy link
Contributor

What changes were proposed in this pull request?

Use the correct API in AlterTableRecoverPartition tests to modify the RDD_PARALLEL_LISTING_THRESHOLD conf.

Why are the changes needed?

The existing AlterTableRecoverPartitions test modify the RDD_PARALLEL_LISTING_THRESHOLD as a SQLConf using the withSQLConf API. But since, this is not a SQLConf, it is not overridden and so the test doesn't end up testing the required behaviour.

Does this PR introduce any user-facing change?

No

How was this patch tested?

This is UT Fix. UTs are still passing after the fix.

@prakharjain09 prakharjain09 changed the title [SPARK-31810][TEST] Fix test where spark conf was modified using incorrect api [SPARK-31810][TEST] Fix AlterTableRecoverPartitions test using incorrect api to modify RDD_PARALLEL_LISTING_THRESHOLD May 25, 2020
@prakharjain09
Copy link
Contributor Author

prakharjain09 commented May 25, 2020

@srowen
Copy link
Member

srowen commented May 25, 2020

Jenkins test this please

Copy link
Member

@srowen srowen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks OK pending tests

@SparkQA
Copy link

SparkQA commented May 25, 2020

Test build #123085 has finished for PR 28634 at commit f6900b3.

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

HyukjinKwon pushed a commit that referenced this pull request May 26, 2020
…ect api to modify RDD_PARALLEL_LISTING_THRESHOLD

### What changes were proposed in this pull request?
Use the correct API in AlterTableRecoverPartition tests to modify the `RDD_PARALLEL_LISTING_THRESHOLD` conf.

### Why are the changes needed?
The existing AlterTableRecoverPartitions test modify the RDD_PARALLEL_LISTING_THRESHOLD as a SQLConf using the withSQLConf API. But since, this is not a SQLConf, it is not overridden and so the test doesn't end up testing the required behaviour.

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

### How was this patch tested?
This is UT Fix. UTs are still passing after the fix.

Closes #28634 from prakharjain09/SPARK-31810-fix-recover-partitions.

Authored-by: Prakhar Jain <prakharjain09@gmail.com>
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
(cherry picked from commit 452594f)
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
@HyukjinKwon
Copy link
Member

HyukjinKwon commented May 26, 2020

Merged to master and branch-3.0.

@HyukjinKwon
Copy link
Member

Seems it has a conflict against branch-2.4 but let me just don't port back as it's minor. Feel free to port back if anyone feels it should.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants