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

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

Hi  [~jark] sorry to miss your question for such a long time.

This issue is still relevent to me.

JDBC sink will receive a java UUID object when I'll send to it a Row with a 
typed column as GenericType<java.util.UUID>.
It occurs when writing records in the sink, obviously.

Then I'm not able to populate my SQL tables with actual java.util.UUID objects. 
It's mandatory to convert them in String prior they reach the sink and it's 
useless as JDBC or subsequent converter could make this conversion on its own

 

> 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.4#803005)

Reply via email to