Skip to content

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

Merged
lvyanquan merged 3 commits intoapache:masterfrom
leonardBang:improve_doris_test_coverage
Feb 24, 2026
Merged

[test] Improve pipeline connector test coverage i.e. doris/postgres/fluss#4266
lvyanquan merged 3 commits intoapache:masterfrom
leonardBang:improve_doris_test_coverage

Conversation

@leonardBang
Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown
Contributor

@lvyanquan lvyanquan left a comment

Choose a reason for hiding this comment

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

+1.

@lvyanquan lvyanquan merged commit 1969f83 into apache:master Feb 24, 2026
32 of 35 checks passed
suhwan-cheon pushed a commit to suhwan-cheon/flink-cdc that referenced this pull request Mar 9, 2026
…luss (apache#4266)

* [test][pipeline-connector/starrocks] Add unit tests for StarRocksUtils

* [test][pipeline-connector/postgres] Add unit tests for PostgresTypeUtils and PostgresSchemaUtils

* [test][pipeline-connector/fluss] Add unit tests for FlussConversions
ThorneANN pushed a commit to ThorneANN/flink-cdc that referenced this pull request Mar 19, 2026
…luss (apache#4266)

* [test][pipeline-connector/starrocks] Add unit tests for StarRocksUtils

* [test][pipeline-connector/postgres] Add unit tests for PostgresTypeUtils and PostgresSchemaUtils

* [test][pipeline-connector/fluss] Add unit tests for FlussConversions
Mrart pushed a commit to Mrart/flink-cdc that referenced this pull request Mar 26, 2026
…luss (apache#4266)

* [test][pipeline-connector/starrocks] Add unit tests for StarRocksUtils

* [test][pipeline-connector/postgres] Add unit tests for PostgresTypeUtils and PostgresSchemaUtils

* [test][pipeline-connector/fluss] Add unit tests for FlussConversions
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.

3 participants