phamvinh1712 commented on code in PR #3950: URL: https://github.com/apache/flink-cdc/pull/3950#discussion_r2053052981
########## flink-cdc-connect/flink-cdc-source-connectors/flink-connector-postgres-cdc/src/main/java/io/debezium/connector/postgresql/connection/PostgresConnectionUtils.java: ########## @@ -0,0 +1,55 @@ +package io.debezium.connector.postgresql.connection; + +import org.apache.flink.cdc.connectors.postgres.source.offset.PostgresOffset; +import org.apache.flink.util.FlinkRuntimeException; + +import io.debezium.connector.postgresql.SourceInfo; +import io.debezium.connector.postgresql.Utils; +import io.debezium.time.Conversions; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.sql.SQLException; +import java.time.Instant; +import java.util.HashMap; +import java.util.Map; + +public class PostgresConnectionUtils { Review Comment: sorry @loserwang1024 but the class ServerInfo.ReplicationSlot is protected in package `io.debezium.connector.postgresql.connection` and the Utils class is in package io.debezium.connector.postgresql` so moving the function there won't work. ########## flink-cdc-connect/flink-cdc-source-connectors/flink-connector-postgres-cdc/src/main/java/io/debezium/connector/postgresql/connection/PostgresConnectionUtils.java: ########## @@ -0,0 +1,55 @@ +package io.debezium.connector.postgresql.connection; + +import org.apache.flink.cdc.connectors.postgres.source.offset.PostgresOffset; +import org.apache.flink.util.FlinkRuntimeException; + +import io.debezium.connector.postgresql.SourceInfo; +import io.debezium.connector.postgresql.Utils; +import io.debezium.time.Conversions; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.sql.SQLException; +import java.time.Instant; +import java.util.HashMap; +import java.util.Map; + +public class PostgresConnectionUtils { Review Comment: sorry @loserwang1024 but the class ServerInfo.ReplicationSlot is protected in package `io.debezium.connector.postgresql.connection` and the Utils class is in package `io.debezium.connector.postgresql` so moving the function there won't work. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org