[ 
https://issues.apache.org/jira/browse/FLINK-13836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16917735#comment-16917735
 ] 

François Lacombe commented on FLINK-13836:
------------------------------------------

HI  [~jark]

UUID is actually a type in pgsql.

[https://www.postgresql.org/docs/11/datatype-uuid.html]

Nevertheless, the point is to be able to write java.util.UUID object to 
database with a dedicated type and format without converting it to string.

Is there an exitsing possibility to do so without writing new code for that?

> Improve support of java.util.UUID for JDBCTypeUtil
> --------------------------------------------------
>
>                 Key: FLINK-13836
>                 URL: https://issues.apache.org/jira/browse/FLINK-13836
>             Project: Flink
>          Issue Type: Improvement
>          Components: Connectors / JDBC
>    Affects Versions: 1.8.0
>            Reporter: François Lacombe
>            Priority: Major
>
> Currently, JDBCTypeUtil used by JDBCAppendTableSinkBuilder dones't support 
> UUID types with java.util.UUID in Java.
> Could it be possible to handle that as to allow to write UUID directly to 
> postgresql please?
>  
> java.lang.IllegalArgumentException: Unsupported type: 
> GenericType<java.util.UUID>
>  at 
> org.apache.flink.api.java.io.jdbc.JDBCTypeUtil.typeInformationToSqlType(JDBCTypeUtil.java:91)
>  at 
> org.apache.flink.api.java.io.jdbc.JDBCAppendTableSinkBuilder.setParameterTypes(JDBCAppendTableSinkBuilder.java:103)



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to