-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Spark: Improvements around test initialization #10131
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,11 +18,9 @@ | |
| */ | ||
| package org.apache.iceberg.spark; | ||
|
|
||
| import java.nio.file.Path; | ||
| import org.apache.iceberg.ParameterizedTestExtension; | ||
| import org.apache.iceberg.Parameters; | ||
| import org.junit.jupiter.api.extension.ExtendWith; | ||
| import org.junit.jupiter.api.io.TempDir; | ||
|
|
||
| @ExtendWith(ParameterizedTestExtension.class) | ||
| public abstract class CatalogTestBase extends TestBaseWithCatalog { | ||
|
|
@@ -48,6 +46,4 @@ protected static Object[][] parameters() { | |
| } | ||
| }; | ||
| } | ||
|
|
||
| @TempDir protected Path temp; | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. there's already a |
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,7 +73,7 @@ public static void dropWarehouse() throws IOException { | |
| } | ||
| } | ||
|
|
||
| @TempDir protected File temp; | ||
| @TempDir protected java.nio.file.Path temp; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Super nit, but while we're doing this: I find it easier to read if we don't use the fully qualified Path name here, rather use the fullly qualified name for the hadoop |
||
|
|
||
| @Parameter(index = 0) | ||
| protected String catalogName; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TestBase.sparkis created in the line above, so we should probably configure the spark context appropriately here