when do we need to create a matchrecoginize relNode used RelBuilder?
This requirement comes from the cep support in Flink table API. After we have defined the match_recognize clauses such as define, measures, pattern using Flink table API, we need to a helper method to construct a matchRecognize RelNode from these RexNodes.
Besides, I think this will also be helpful when we create optimization rules for match_recognize in the future.
SqlToRel already have matchRecognize convert
SqlToRelConverter.convertMatchRecognize is only used to convert SqlNode to RelNode. While with RelBuilder.matchRecognize we can construct RelNode from the RexNodes.
Thoughts? Zhiqiang He