-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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, Spark: Migrate tests that depend on ScanTestBase to JUnit5 #9416
Core, Spark: Migrate tests that depend on ScanTestBase to JUnit5 #9416
Conversation
Based on the test failures, older spark versions depend on A possible solution would be to migrate the affected files in older versions to JUnit5 as well. That would be a task bigger than this PRs scope. Another solution would be to create JUnit5 versions of the above @nastra @Fokko |
8b2c13c
to
5bf3026
Compare
spark/v3.5/spark/src/test/java/org/apache/iceberg/SparkDistributedDataScanTestBase.java
Show resolved
Hide resolved
spark/v3.5/spark/src/test/java/org/apache/iceberg/TestSparkDistributedDataScanDeletes.java
Show resolved
Hide resolved
spark/v3.5/spark/src/test/java/org/apache/iceberg/TestSparkDistributedDataScanReporting.java
Show resolved
Hide resolved
data/src/test/java/org/apache/iceberg/io/TestGenericSortedPosDeleteWriter.java
Show resolved
Hide resolved
core/src/test/java/org/apache/iceberg/ScanPlanningAndReportingTestBase.java
Outdated
Show resolved
Hide resolved
core/src/test/java/org/apache/iceberg/TestLocalFilterFiles.java
Outdated
Show resolved
Hide resolved
core/src/test/java/org/apache/iceberg/DeleteFileIndexTestBase.java
Outdated
Show resolved
Hide resolved
We have files that inherit from |
Yes that would probably be the best here |
not sure why the one CI test is failing, all tests pass locally for me. Can you rerun the CI? |
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.
LGTM, thanks @chinmay-bhat for getting this done!
This PR migrates tests that depend on
SparkDistributedDataScanTestBase
to JUnit5.SparkDistributedDataScanTestBase
inherits from classes that ultimately inherit fromTableTestBase
.TableTestBase
uses JUnit4 imports and is the base class for atleast 90+ classes across flink, core, data, and spark. So I createdParameterizedTableTestBase
, a version ofTableTestBase
migrated to JUnit5. This is similar to #9076Issue: #9086