You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Hongshun Wang (Jira)" <ji...@apache.org> on 2025/04/11 06:06:00 UTC

[jira] [Commented] (FLINK-37479) postgres cdc connector support discover PARTITIONED TABLE

    [ https://issues.apache.org/jira/browse/FLINK-37479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17943427#comment-17943427 ] 

Hongshun Wang commented on FLINK-37479:
---------------------------------------

[~phamvinh1712] As I discussed in [https://docs.google.com/document/d/10ndYF3aORwRaeEElO1pSE9WRVoxa1vJrnleqi0HHWq8/edit?tab=t.0 |https://docs.google.com/document/d/10ndYF3aORwRaeEElO1pSE9WRVoxa1vJrnleqi0HHWq8/edit?tab=t.0]

It's not easy to support it because cdc's shouldEmit logical.

Currently, using a regular expression for the table name can achieve a similar effect, but it is not as elegant.

> postgres cdc connector support discover PARTITIONED TABLE
> ---------------------------------------------------------
>
>                 Key: FLINK-37479
>                 URL: https://issues.apache.org/jira/browse/FLINK-37479
>             Project: Flink
>          Issue Type: Improvement
>          Components: Flink CDC
>            Reporter: Vinh Pham
>            Priority: Minor
>
> At the moment, Postgresql connector doesn't support discover PARTITIONED TABLE, making the connector not possible to take snapshot on partitioned table.
> [https://github.com/apache/flink-cdc/blob/master/flink-cdc-connect/flink-cdc-source-connectors/flink-connector-postgres-cdc/src/main/java/org/apache/flink/cdc/connectors/postgres/source/utils/TableDiscoveryUtils.java#L41]
>  
> This is inconsistent with the other implementation in PostgresConnection class [https://github.com/apache/flink-cdc/blob/master/flink-cdc-connect/flink-cdc-source-connectors/flink-connector-postgres-cdc/src/main/java/io/debezium/connector/postgresql/connection/PostgresConnection.java#L859]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)