You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Nicholas Jiang (Jira)" <ji...@apache.org> on 2022/06/29 03:40:00 UTC

[jira] [Updated] (CALCITE-5202) Enhance MATCH_RECOGNIZE functionality

|  ![](cid:jira-generated-image-avatar-f4717abc-2a65-4480-b09f-67432cdbe856) |
[Nicholas
Jiang](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=nicholasjiang)
**updated** an issue  
---|---  
|  
---  
|  [Calcite](https://issues.apache.org/jira/browse/CALCITE) / [![New
Feature](cid:jira-generated-image-
avatar-1ed3d76b-176e-4b89-a9df-f6931279cd78)](https://issues.apache.org/jira/browse/CALCITE-5202)
[CALCITE-5202](https://issues.apache.org/jira/browse/CALCITE-5202)  
---  
[Enhance MATCH_RECOGNIZE
functionality](https://issues.apache.org/jira/browse/CALCITE-5202)  
| Change By: |  [Nicholas
Jiang](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=nicholasjiang)  
---|---  
|  MATCH_RECOGNIZE only supports the output of the matches, doesn't support
the output of the timeout at present. Meanwhile,   MATCH_RECOGNIZE doesn't
support the definition of the dynamic window format for WITHIN. WITH TIMEOUT
ROWS and WITHIN INTERVAL intervalExpression are is proposed to support for
MATCH_RECOGNIZE functional enhancement.  
The grammar of enhanced MATCH_RECOGNIZE is as follows:  
  
{code:sql}  
SELECT [ ALL | DISTINCT ]  
{ * | projectItem [, projectItem ]* }  
FROM tableExpression  
[MATCH_RECOGNIZE (  
[PARTITION BY {partitionItem [, partitionItem]*}]  
[ORDER BY {orderItem [, orderItem]*}]  
[MEASURES {measureItem AS col [, measureItem AS col]*}]  
[ONE ROW PER MATCH|ALL ROWS PER MATCH|ONE ROW PER MATCH WITH TIMEOUT ROWS|ALL
ROWS PER MATCH WITH TIMEOUT ROWS]  
[AFTER MATCH SKIP]  
PATTERN (patternVariable[quantifier] [ patternVariable[quantifier]]*) WITHIN
intervalExpression  
DEFINE {patternVariable AS patternDefinationExpression [, patternVariable AS
patternDefinationExpression]*}  
)];  
{code}  
  
---  
|  |  [ ![Add Comment](cid:jira-generated-image-static-comment-
icon-6bbf98a3-965c-4194-bebc-47a5a4cb6c54)
](https://issues.apache.org/jira/browse/CALCITE-5202#add-comment "Add
Comment") |  [Add
Comment](https://issues.apache.org/jira/browse/CALCITE-5202#add-comment "Add
Comment")  
---|---  
  
|  This message was sent by Atlassian Jira (v8.20.10#820010-sha1:ace47f9) |  |
![Atlassian logo](https://issues.apache.org/jira/images/mail/atlassian-email-
logo.png)  
---