org.apache.flink.table.api.TableException: StreamPhysicalOverAggregate doesn’t support consuming update and delete changes which is produced by node Join(joinType=[InnerJoin], where=[(wms_bill_id = wms_bill_id0)], select=[service_type, org_id, create_time, update_time, wms_bill_id, unique_code, wms_bill_id0], leftInputSpec=[NoUniqueKey], rightInputSpec=[NoUniqueKey])
这个报错有效的部分是:StreamPhysicalOverAggregate doesn’t support consuming update and delete changes which is produced by node Join
这句话有两个变量 一个是 StreamPhysicalOverAggregate 另一个是 node Join
表示 前一个算子 因为 后一个算子 而不支持更新和删除操作,简单点说就是 这个代码不支持回撤流场景,
只需要分析 StreamPhysicalOverAggregate 是哪里出现,这是个聚合函数。
另一个分析 node Join 是join的部分
从我个人的代码中 我分析出,回撤流场景,有rownumber()场景,并使用inner join ,下游输出了rn,导致报错
处理办法:不输出rn就好了,很奇怪 有个相同的场景,输出rn 也不报错,但是那个中间做了一些处理逻辑,分析是 处理逻辑 导致下游的回撤场景发生了不同