Skip to content

Conversation

@leonardBang
Copy link
Contributor

[test] Improve pipeline connector test coverage i.e. doris/postgres/fluss connector

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds unit tests to increase connector utility coverage across multiple pipeline connectors, focusing on schema/type conversion helpers and field extraction logic.

Changes:

  • Add StarRocksUtilsTest to cover StarRocks table/type conversion and field getter behavior.
  • Add PostgresTypeUtilsTest and PostgresSchemaUtilsTest to cover type handling and TableId conversion helpers.
  • Add FlussConversionsTest to cover CDC-to-Fluss schema/table conversion and schema comparison behavior.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-starrocks/src/test/java/org/apache/flink/cdc/connectors/starrocks/sink/StarRocksUtilsTest.java New unit tests for StarRocks conversion utilities and RecordData field getters.
flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-postgres/src/test/java/org/apache/flink/cdc/connectors/postgres/utils/PostgresTypeUtilsTest.java New unit tests for Postgres type conversion mode handlers (decimal/binary/temporal/etc.).
flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-postgres/src/test/java/org/apache/flink/cdc/connectors/postgres/utils/PostgresSchemaUtilsTest.java New unit tests for quoting and CDC↔Debezium TableId conversions.
flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-fluss/src/test/java/org/apache/flink/cdc/connectors/fluss/utils/FlussConversionsTest.java New unit tests for Fluss schema/table conversion and column comparison logic.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant