You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
场景:mysql A表实时汇总到B表。
步骤:
1、A表开启binlog
2、A表写入10000条数据
3、配置flinksql任务,并提交job
4、确认job正常运行之后,往A表写入10条新数据
结果:B表中只收到新写入的10条的数据汇总
脚本内容: insert into B (age,countnum) select age,count(1) as countnum from A group by age
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
场景:mysql A表实时汇总到B表。
步骤:
1、A表开启binlog
2、A表写入10000条数据
3、配置flinksql任务,并提交job
4、确认job正常运行之后,往A表写入10条新数据
结果:B表中只收到新写入的10条的数据汇总
脚本内容:
insert into B (age,countnum) select age,count(1) as countnum from A group by age
同样的逻辑,在flink 1.15中配置之后,B表可以汇总到原来的10000条数据
Beta Was this translation helpful? Give feedback.
All reactions