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

Core, Data, Flink, Spark: Improve tableDir initialization for tests #11460

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

nastra
Copy link
Contributor

@nastra nastra commented Nov 4, 2024

Typically initialization of a table dir is either already handled in a super class or we can make use of @TempDir, thus not requiring manual re-initialization

@nastra nastra force-pushed the test-improvements branch 3 times, most recently from 51bdb39 to b85c7ae Compare November 4, 2024 15:23
@@ -73,6 +72,7 @@ public static List<Object> parameters() {
}

@TempDir public Path temp;
Copy link
Contributor

Choose a reason for hiding this comment

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

Unrelated nit

Suggested change
@TempDir public Path temp;
@TempDir private Path temp;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

can't make it private unfortunately, but protected would work, since it's being used in subclasses

Copy link
Contributor

@Fokko Fokko left a comment

Choose a reason for hiding this comment

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

This is nice, thanks for cleaning this up 👍

@nastra nastra force-pushed the test-improvements branch from b85c7ae to 79b122e Compare November 5, 2024 10:07
@nastra nastra merged commit 67ee082 into apache:main Nov 5, 2024
49 checks passed
@nastra nastra deleted the test-improvements branch November 5, 2024 11:56
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.

3 participants