大佬,再请教个问题,
insert into sink_2 
select a.`time`,c.cust,b.mobile
from case2_TOPIC_A a
left join card_data b on a.card = b.card
left join view_new_card_info c on a.card = c.card;




case2_TOPIC_A  是一个普通表,view_new_card_info 是维表, 我要插入的 sink_2 其实应该是一个apped表。  
为什么提交的时候要求 
 please declare primary key for sink table when query contains update/delete 
record.


我这个只需要追加就可以了吧,该怎么处理呢?


| |
杨光跃
|
|
[email protected]
|
签名由网易邮箱大师定制
在2021年6月30日 15:44,杨光跃<[email protected]> 写道:


收到了,谢谢。
在sql-client里面执行 :          set table.exec.source.idle-timeout = 10s;
| |
杨光跃
|
|
[email protected]
|
签名由网易邮箱大师定制
在2021年6月30日 15:36,silence<[email protected]> 写道:
可参考 
https://ci.apache.org/projects/flink/flink-docs-release-1.13/docs/dev/table/config/#table-exec-source-idle-timeout


------------------------------------------------------------------
发件人:杨光跃 <[email protected]>
发送时间:2021年6月30日(星期三) 10:54
收件人:[email protected] <[email protected]>
主 题:flink sql 空闲数据源场景如何配置

在代码中可以通过          .withIdleness(Duration.ofMinutes(1)); 指定空闲数据源也触发水印,那么sql中怎么表示呢


| |
杨光跃
|
|
[email protected]
|
签名由网易邮箱大师定制

回复