Skip to content
Discussion options

You must be logged in to vote

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:

  • Flink CDC 3.5.0 uses PostgreSQL JDBC driver 42.7.3
  • Our application was using 42.7.7

Starting in version 42.7.5, the PostgreSQL JDBC driver introduced a fix(pgjdbc/pgjdbc#3390) that changed the behavior of DatabaseMetaData.getTables():

  • Before 42.7.5 (including 42.7.3): The TABLE_CAT column returned NULL
  • After 42.7.5 (including 42.7.7): The TABLE_CAT column returns the actual database name (via current_database()) to comply with JDBC specification

This behavioral change creates a TableId mismatch:

  • When Flink CDC calls r…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by meng-miao-wu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant