yelianevich opened a new pull request, #14095:
URL: https://github.com/apache/iceberg/pull/14095
Closes #13506
This improvement simplifies test code by leveraging the fact that `@TestDir`
will automatically created and cleaned up for every test case we have.
It makes the following pattern redundant in most of the situations:
```
File data = File.createTempFile("junit", null, temp.toFile());
assertThat(data.delete()).isTrue();
```
↓
```
Path data = test.resolve("file.parquet");
// or
File file = test.resolve("file.parquet").toFile();
```
This PR applies the suggested pattern to the **Spark module** of the project.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]