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
Flink: Migrate subclasses of FlinkCatalogTestBase to JUnit5 #9381
Conversation
vinitpatni
commented
Dec 26, 2023
- Added junit 5 conversion and AssertJ style for TestFlinkCatalogTable and TestFlinkMetadataTable
… and TestFlinkMetaDataTable
flink/v1.18/flink/src/test/java/org/apache/iceberg/flink/TestFlinkCatalogTable.java
Outdated
Show resolved
Hide resolved
flink/v1.18/flink/src/test/java/org/apache/iceberg/flink/TestFlinkCatalogTable.java
Outdated
Show resolved
Hide resolved
"Should have the expected columns", | ||
ImmutableSet.of("data", "id"), | ||
ImmutableSet.copyOf(uniqueConstraintOptional.get().getColumns())); | ||
assertThat(uniqueConstraintOptional.isPresent()).isTrue(); |
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.
same as above
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.
ack
flink/v1.18/flink/src/test/java/org/apache/iceberg/flink/TestFlinkCatalogTable.java
Outdated
Show resolved
Hide resolved
flink/v1.18/flink/src/test/java/org/apache/iceberg/flink/TestFlinkCatalogTable.java
Outdated
Show resolved
Hide resolved
flink/v1.18/flink/src/test/java/org/apache/iceberg/flink/source/TestFlinkMetaDataTable.java
Show resolved
Hide resolved
flink/v1.18/flink/src/test/java/org/apache/iceberg/flink/source/TestFlinkMetaDataTable.java
Outdated
Show resolved
Hide resolved
flink/v1.18/flink/src/test/java/org/apache/iceberg/flink/source/TestFlinkMetaDataTable.java
Outdated
Show resolved
Hide resolved
…style for TestFlinkTableSink
…estRewriteDataFilesAction
|
@nastra TestStreamScanSql is the only subclass remaining for conversion to Junit 5 but it has dependency on GenericAppenderHelper class which is part of iceberg-data module. Let me know how to tackle that ? |
@vinitpatni the issue with |
I have done changes in TestStreamScanSql locally but running testcases on my local machine is taking lot of time. It is running indefinitely for this class. @nastra Do you have any idea ? |
@vinitpatni without seeing the changes for |
@nastra I tried to execute locally both junit 4 version (main branch version) as well as this version(junit5 one). These tests are running indefinitely for both of these versions |
flink/v1.18/flink/src/test/java/org/apache/iceberg/flink/source/TestStreamScanSql.java
Outdated
Show resolved
Hide resolved
flink/v1.18/flink/src/test/java/org/apache/iceberg/flink/source/TestStreamScanSql.java
Outdated
Show resolved
Hide resolved
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.
almost ready to go, just 2 minor things to address
|
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 @vinitpatni. Could you also please remove FlinkCatalogTestBase
as part of this PR as I don't think it's used anymore, since everything was converted.
Ack. Removed FlinkCatalogTestBase and its references |
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.
thanks @vinitpatni for getting this done
…f FlinkCatalogTestBase to JUnit5
…f FlinkCatalogTestBase to JUnit5
…f FlinkCatalogTestBase to JUnit5
…f FlinkCatalogTestBase to JUnit5
…nkCatalogTestBase to JUnit5 (#9598)
…of FlinkCatalogTestBase to JUnit5 (apache#9598)
…of FlinkCatalogTestBase to JUnit5 (apache#9598)