Postgres pipeline: NullPointerException in PostgresScanFetchTask #4226
-
|
Environment
Pipeline Configuration Error I noticed that SchemaCoordinator registers the table schema without database prefix: Would appreciate guidance: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
I had ran into the same issue before with the postgres connector here |
Beta Was this translation helpful? Give feedback.
-
|
I've identified the root cause of this NullPointerException. The issue stems from a PostgreSQL JDBC driver version mismatch between Flink CDC 3.5.0 and our application:
Starting in version 42.7.5, the PostgreSQL JDBC driver introduced a fix(pgjdbc/pgjdbc#3390) that changed the behavior of DatabaseMetaData.getTables():
This behavioral change creates a TableId mismatch:
I was able to align the behavior by downgrade the PostgreSQL JDBC driver to 42.7.3. |
Beta Was this translation helpful? Give feedback.
I've identified the root cause of this NullPointerException. The issue stems from a PostgreSQL JDBC driver version mismatch between Flink CDC 3.5.0 and our application:
Starting in version 42.7.5, the PostgreSQL JDBC driver introduced a fix(pgjdbc/pgjdbc#3390) that changed the behavior of DatabaseMetaData.getTables():
This behavioral change creates a TableId mismatch: