Skip to content

Conversation

@tomtongue
Copy link
Contributor

@tomtongue tomtongue commented Apr 3, 2024

Migrate the following test classes to delete TableTestBase for #9085.

This PR is for the migration of TableTestBase related classes in #10063.

Current Progress

Core:

  • (skipped) TestContentFileParser

  • (skipped) TestFileScanTaskParser

  • util/TestTableScanUtil

  • WriterTestBase

    • TestFileWriterFactory
      • TestGenericFileWriterFactory
      • TestSparkFileWriterFactory for the versions: v3.3, v3.4, v3.5
      • TestFlinkFileWriterFactory for the versions: v1.16, v.1.17, v1.18
    • TestPartitioningWriters
      • TestSparkPartitioningWriters for the versions: v3.3, v3.4, v3.5
      • TestFlinkPartitioningWriters for the versions: v1.16, v.1.17, v1.18
    • TestPositionDeltaWriters
      • TestSparkPositionDeltaWriters for the versions: v3.3, v3.4, v3.5
      • TestFlinkPositionDeltaWriters for the versions: v1.16, v.1.17, v1.18
    • TestRollingFileWriters
      • TestSparkRollingFileWriters for the versions: v3.3, v3.4, v3.5
      • TestFlinkRollingFileWriters for the versions: v1.16, v.1.17, v1.18

iceberg-flink for the versions: v1.16, v.1.17, v1.18

  • TestStreamingReaderOperator
  • TestStreamingMonitorFunction
  • TestIcebergFilesCommitter
  • TestDeltaTaskWriter

Assert.assertEquals(4, result.deleteFiles().size());
Assert.assertEquals(0, result.referencedDataFiles().size());
Assert.assertFalse(result.referencesDataFiles());
assertThat(writer.result().deleteFiles()).hasSize(4);
Copy link
Contributor

Choose a reason for hiding this comment

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

you may want to remove the result variable if you're using it directly here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh sorry, I will update this part.

@tomtongue tomtongue force-pushed the mig-junit5-tabletestbase-cls branch from b22fb16 to 728caf8 Compare April 3, 2024 08:07
Copy link
Contributor

@nastra nastra left a comment

Choose a reason for hiding this comment

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

the changes you have so far LGTM, is this PR still WIP or ready?

@tomtongue tomtongue changed the title [WIP] Migrate TableTestBase related classes to JUnit5 Migrate TableTestBase related classes to JUnit5 Apr 3, 2024
@tomtongue
Copy link
Contributor Author

the changes you have so far LGTM, is this PR still WIP or ready?

Thanks for the review. This PR is ready, and all the classes are already migrated. Remove "WIP".

@nastra nastra merged commit ced897c into apache:main Apr 3, 2024
@tomtongue tomtongue deleted the mig-junit5-tabletestbase-cls branch April 4, 2024 05:14
sasankpagolu pushed a commit to sasankpagolu/iceberg that referenced this pull request Oct 27, 2024
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.

2 participants