Skip to content

Conversation

@huangxiaopingRD
Copy link
Contributor

@huangxiaopingRD huangxiaopingRD commented Oct 11, 2022

What changes were proposed in this pull request?

Delete the directory that has been created in advance in the test case. Add the judgment of whether the directory exists.

Why are the changes needed?

The implementation class of ExternalCatalog will perform folder operations when performing operations such as create/drop database/table/partition. The test case creates a folder in advance when obtaining the DB/Partition path URI, in unit tests the external catalog does not actually create files, resulting in the result of the test case is not convincing enough force.

Does this PR introduce any user-facing change?

No

How was this patch tested?

tests were added

@github-actions github-actions bot added the SQL label Oct 11, 2022
@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@huangxiaopingRD
Copy link
Contributor Author

@cloud-fan Can you help with a review? thanks

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in 933dc0c Oct 19, 2022
SandishKumarHN pushed a commit to SandishKumarHN/spark that referenced this pull request Dec 12, 2022
### What changes were proposed in this pull request?
Delete the directory that has been created in advance in the test case. Add the judgment of whether the directory exists.

### Why are the changes needed?
The implementation class of ExternalCatalog will perform folder operations when performing operations such as create/drop database/table/partition. The test case creates a folder in advance when obtaining the DB/Partition path URI, in unit tests the external catalog does not actually create files, resulting in the result of the test case is not convincing enough force.

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

No

### How was this patch tested?

tests were added

Closes apache#38206 from huangxiaopingRD/fix_catalog_ut.

Authored-by: huangxiaoping <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants