flink-user-zh mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 庞泳佑 <18511179...@163.com>
Subject Flink CEP 支持Pattern以贪婪量词结尾吗?
Date Tue, 20 Aug 2019 08:51:06 GMT


"PATTERN(e1 e2+)  WITHIN INTERVAL '10' minute " +         //定义两个事件,e1和e2 
 WITHIN INTERVAL '10' MINUTE
"DEFINE " +   //-定义在PATTERN中出现的变量的具体含义。
"e1 as e1.name = 'Tom'," + //--事件⼀的action标记为tom
"e2 as e2.name = 'Tom' and e2.location1 <> e1.location1" +  //事件⼆的action标记为Tom,且事件⼀和事件⼆的location不⼀致。
“)"






运行抛出错误:Exception in thread "main" org.apache.flink.table.api.TableException:
Greedy quantifiers are not allowed as the last element of a Pattern yet. Finish your pattern
with either a simple variable or reluctant quantifier.
| |
庞泳佑
|
|
18511179735@163.com
|
签名由网易邮箱大师定制

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message