I am trying to replication data from one postgresql database to another. I am using kafka-connect-jdbc version 10.2.2.
I got below error when my postgres source table has a column which is an array:
“org.apache.kafka.connect.errors.ConnectException: Unsupported source data type: ARRAY”
I tried to use flatten SMT in my sink connector configuration, but got below error:
“Flatten transformation does not support ARRAY”
Any suggestions to solve this error for array data type in the source table? Thanks.
The “Unsupported source data type” error message likely comes from the GenericDatabaseDialect class, meaning that the connector isn’t recognizing that the database as Postgres (based on the database connection string). Could you please try setting dialect.name=PostgreSqlDatabaseDialect in your connector config and see if you get the same error.
Here’s the supporting documentation if you want to take a look.