如何重置 esper every-distinct 子表达式?
我有许多具有唯一 ID 的航行报告,我想检测他们何时更改目的地。以下检测到第一个更改,但未检测到后续更改。
select new from pattern [every-distinct(new.id) new=VoyageReport -> (VoyageReport(id=new.id and new.destination!=destination)) where timer:within(2 hours)]
id=1,目的地=A
id=1,目的地=B
好的
id=1,目的地=C
没有检测到?