[jira] [Created] (FLINK-21367) Support objectReuse in JDBC sink

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-21367) Support objectReuse in JDBC sink

Shang Yuanchun (Jira)
Roman Khachatryan created FLINK-21367:
-----------------------------------------

             Summary: Support objectReuse in JDBC sink
                 Key: FLINK-21367
                 URL: https://issues.apache.org/jira/browse/FLINK-21367
             Project: Flink
          Issue Type: Improvement
          Components: Connectors / JDBC
            Reporter: Roman Khachatryan


Currently, if object reuse is enabled then JDBC sink factories will throw an exception. This prevents some use cases including recent one with Stateful Functions [1].

To overcome this, JdbcBatchingOutputFormat can implement InputTypeConfigurable and use the obtained serializer to copy the record if object reuse is enabled.

[1]  http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Stateful-Functions-JDBC-Sink-Problems-td41265.html 

cc: [~igal], [~jark]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)