我正在使用Esser EPL Online来更深入地了解CEP引擎Esper。现在,我正在努力定义一个EPL语句,如果一个事件发生在另一个事件之前,那么它就是真的。我想使用“之前”的-Statement。
create schema A as (startts long, endts long) starttimestamp 'startts' endtimestamp 'endts'
create schema B as (startts long, endts long) starttimestamp 'startts' endtimestamp 'endts'
select * from A.std:lastevent() as a, B.std:lastevent() as b where a.before(b);每次我按下Submit时,都会出现以下错误:
请检查EPL模块文本
' 'startts‘’附近的语法不正确,需要标识符,但在第1行列61找到了select。create schema A as (startts long,endts long) starttimestamp 'startts‘endtimestamp ' endts’create schema B as (startts long,endts long) starttimestamp‘startts’endtimestamp 'endts‘select* from A.std:lastevent() as a,B.std:lastevent() as b where a.before(b)
有人能帮我吗?非常感谢。:)
发布于 2020-11-10 06:27:47
在每个EPL语句后添加分号。
create schema A as (startts long, endts long); // <-- Semicolon https://stackoverflow.com/questions/64756518
复制相似问题