Flink: FlinkSink & IcebergSink desynchronized tests alignment
Summary
Currently, the unit tests for IcebergSink (based on the Flink SinkV2 interface) have a code duplication from FlinkSink tests. In the IcebergSink tests there were done some code enhancements that haven't been migrated to FlinkSink tests.
The scope of this change is to migrate these enhancements. List of enhancements:
Flink.checkAndGetEqualityFieldIdshas been replaced bySinkUtil.checkAndGetEqualityFieldIdsas("description")has been added to some assertions
Other improvements that were done:
- Typo fix in
testOperatorsUidNameWitUidSuffix TestFlinkIcebergSinkV2BranchandTestFlinkIcebergSinkV2BaseextendedTestFlinkIcebergSinkV2Basewhich has test parameters defined but they weren't used. Instead of that, were used the default, initial values of fields. After this change, test parameters are only defined in leaf classesTestFlinkIcebergSinkV2Base.testChangeLogshas akeySelectorparameter that wasn't used anywhere - this change removes it. To discuss: Are tests based on this selector correctly checking what was intended?
@rodmeneses @pvary please take a look
@pvary @stevenzwu could you guys please start the CI pipelines on this PR? Thanks
This one looks good to me. @pvary could you please add me as reviewer so I can register my approval ? Thanks
This one looks good to me. @pvary could you please add me as reviewer so I can register my approval ? Thanks
@pvary can you add @rodmeneses as a reviewer or look at this PR on your own? This is very non-controversial change. Only cleanup of unused code and synchronization of improvements in the code that are already done in other places.
This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions.