sunjincheng121 commented on a change in pull request #6805:
[FLINK-10156][table] Deprecate Table.writeToSink()
URL: https://github.com/apache/flink/pull/6805#discussion_r224289531
##########
File path: docs/dev/table/connect.md
##########
@@ -1108,8 +1127,15 @@ val sink: JDBCAppendTableSink =
JDBCAppendTableSink.builder()
.setParameterTypes(INT_TYPE_INFO)
.build()
+tableEnv.registerTableSink(
+ "jdbcOutputTable",
+ sink,
+ // specify table schema
+ Array[String]("id"),
+ Array[TypeInformation[_]](Types.INT))
+
val table: Table = ???
-table.writeToSink(sink)
+table.insertInto("jdbcTableSink")
Review comment:
`jdbcTableSink` -> `jdbcOutputTable`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services