我正在使用 flink 1.11 并尝试使用 match_recognize 的嵌套查询,如下所示:
select * from events where id = (SELECT * FROM events MATCH_RECOGNIZE (PARTITION BY org_id ORDER BY proctime MEASURES A.id AS startId ONE ROW PER MATCH PATTERN (A C* B) DEFINE A AS A.tag = 'tag1', C AS C.tag <> 'tag2', B AS B.tag = 'tag2'));
我收到一个错误:org.apache.calcite.sql.validate.SqlValidatorException: Table 'A' not found
这不支持吗?如果不是还有什么选择?