当前位置:网站首页>Flink Sql -- toAppendStream doesn‘t support consuming update and delete changes which
Flink Sql -- toAppendStream doesn‘t support consuming update and delete changes which
2022-06-30 08:27:00 【//承续缘_纪录片】
在Flink sql进行测试输出, 想把 sql查询的结果Table 转为DataStream 然后进行打印
当我们table.toAppendStream[Row]的时候 发现报错
其实这个因为我们sql 查的那个动态表 是Mysql 这类源, 他们是可以进行update,delete,insert操作的。
对于toAppendStream呢 是仅可以将追加流进行转换输出 比如kafka
所以我们使用
table.toRetractStream[Row].print() 即可
这操作呢打印结果是一个有两部分, 前面部分为boolean类型, 后面是你的select 其中 true表示insert ,false表示 update/delete
table.toRetractStream[Row].print() 即可
tableEnv.toRetractStream(table,EventLog.class).print();
对于Table / sql 转 Stream 可以看官网也有详细的讲解
官网
边栏推荐
- Cesium learning notes (II) uploading data using rest API
- [nvme2.0b 14-7] set features (Part 1)
- How CRM & PM helps enterprises create optimal sales performance
- [kotlin collaboration process] complete the advanced kotlin collaboration process
- 【NVMe2.0b 14-6】Format NVM、Keep Alive、Lockdown command
- 从0开始构建一个瀚高数据库Docker镜像
- Cesium learning notes (VI) particle system
- 一次cpu 跌底排查
- What are the Amazon evaluation terms?
- [flower carving experience] 12 build the Arduino development environment of esp32c3
猜你喜欢

Sword finger offer II 074 Merge interval (sort, array)

一次cpu 跌底排查

Redis设计与实现(八)| 事务
![[flower carving experience] 12 build the Arduino development environment of esp32c3](/img/76/a66e6d5c62d25067841b47eb01b718.jpg)
[flower carving experience] 12 build the Arduino development environment of esp32c3

Tidb 6.0: making Tso more efficient tidb Book rush

Redis design and Implementation (VII) | publish & subscribe

What are the Amazon evaluation terms?

Opencv image

小程序使用二维码插件

【NVMe2.0b 14-5】Firmware Download/Commit command
随机推荐
Cesium learning notes (I)
Pycharm Dlib library installation
Cesium learning notes (IV) visual image & Terrain
领域驱动下cloud项目中单个服务的示例
How CRM & PM helps enterprises create optimal sales performance
[untitled]
2021-02-19
Redis设计与实现(八)| 事务
[nvme2.0b 14-7] set features (Part 1)
el-input 限制只能输数字
【NVMe2.0b 14-6】Format NVM、Keep Alive、Lockdown command
Sword finger offer II 074 Merge interval (sort, array)
【NVMe2.0b 14-2】Create/Delete Queue
Vulfocus entry target
【NVMe2.0b 14-5】Firmware Download/Commit command
1. Problems related to OpenGL window and environment configuration
[flower carving experience] 13 build the platformio ide development environment of esp32c3
vulfocus入门靶机
MIME类型大全
Unity simple shader