You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Kurt Young (Jira)" <ji...@apache.org> on 2020/01/14 04:12:00 UTC

[jira] [Updated] (FLINK-15579) Can not use jdbc connector on Blink batch mode

     [ https://issues.apache.org/jira/browse/FLINK-15579?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kurt Young updated FLINK-15579:
-------------------------------
    Component/s: Table SQL / Planner

> Can not use jdbc connector on Blink batch mode 
> -----------------------------------------------
>
>                 Key: FLINK-15579
>                 URL: https://issues.apache.org/jira/browse/FLINK-15579
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Planner
>            Reporter: Shu Li Zheng
>            Priority: Major
>
> Because JDBCTableSourceSinkFactory.createStreamTableSink() create JDBCUpsertTableSink. But BatchExecSink can not work with UpsertStreamTableSink.
> {code:scala}
>   override protected def translateToPlanInternal(
>       planner: BatchPlanner): Transformation[Any] = {
>     val resultTransformation = sink match {
>       case _: RetractStreamTableSink[T] | _: UpsertStreamTableSink[T] =>
>         throw new TableException("RetractStreamTableSink and UpsertStreamTableSink is not" +
>           " supported in Batch environment.")
> {code}



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