You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "chestnut-c (via GitHub)" <gi...@apache.org> on 2025/07/08 13:48:41 UTC

[I] [Bug] [Connector-Jdbc] Writing to MySQL does not support collection data types such as: set type. [seatunnel]

chestnut-c opened a new issue, #9551:
URL: https://github.com/apache/seatunnel/issues/9551

   ### Search before asking
   
   - [x] I had searched in the [issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues.
   
   
   ### What happened
   
   Writing to MySQL does not support collection data types such as: set type
   
   ### SeaTunnel Version
   
   2.3.12
   
   ### SeaTunnel Config
   
   ```conf
   default config
   ```
   
   ### Running Command
   
   ```shell
   --config ./config/v2.batch.config.mysql -m local
   ```
   
   ### Error Exception
   
   ```log
   Caused by: org.apache.seatunnel.common.utils.SeaTunnelException: org.apache.seatunnel.common.exception.SeaTunnelRuntimeException: ErrorCode:[COMMON-20], ErrorDescription:['MySQL' table 'chestnufang_batch_test_sink.test_0' unsupported get catalog table with field data types '{"hobbies":"SET"}']
   	at org.apache.seatunnel.common.exception.CommonError.getCatalogTableWithUnsupportedType(CommonError.java:177)
   	at org.apache.seatunnel.connectors.seatunnel.jdbc.catalog.AbstractJdbcCatalog.buildColumnsWithErrorCheck(AbstractJdbcCatalog.java:267)
   	at org.apache.seatunnel.connectors.seatunnel.jdbc.catalog.AbstractJdbcCatalog.buildColumnsReturnTablaSchemaBuilder(AbstractJdbcCatalog.java:245)
   	at org.apache.seatunnel.connectors.seatunnel.jdbc.catalog.AbstractJdbcCatalog.getTable(AbstractJdbcCatalog.java:218)
   	at org.apache.seatunnel.connectors.seatunnel.jdbc.sink.JdbcSink.getDatabaseTableSchema(JdbcSink.java:195)
   	at org.apache.seatunnel.connectors.seatunnel.jdbc.sink.JdbcSink.createWriter(JdbcSink.java:150)
   	at org.apache.seatunnel.connectors.seatunnel.jdbc.sink.JdbcSink.createWriter(JdbcSink.java:66)
   	at org.apache.seatunnel.api.sink.multitablesink.MultiTableSink.createWriter(MultiTableSink.java:82)
   ```
   
   ### Zeta or Flink or Spark Version
   
   zeta 
   
   ### Java or Scala Version
   
   java 1.8
   
   ### Screenshots
   
   <img width="1714" height="417" alt="Image" src="https://github.com/user-attachments/assets/588827a1-4a6f-4206-8a09-e2ddfcb4fd5e" />
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: commits-unsubscribe@seatunnel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] [Connector-Jdbc] Writing to MySQL does not support collection data types such as: set type. [seatunnel]

Posted by "corgy-w (via GitHub)" <gi...@apache.org>.
corgy-w closed issue #9551: [Bug] [Connector-Jdbc] Writing to MySQL does not support collection data types such as: set type.
URL: https://github.com/apache/seatunnel/issues/9551


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org