Skip to content

Commit

Permalink
[FLINK-10591][docs] Added description of MATCH_ROWTIME and MATCH_PROC…
Browse files Browse the repository at this point in the history
…TIME functions
  • Loading branch information
dawidwys authored and pnowojski committed Jan 18, 2019
1 parent 36639d3 commit 2790408
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions docs/dev/table/streaming/match_recognize.md
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,37 @@ One has to keep in mind that in case of the `SKIP TO FIRST/LAST variable` strate
variable (e.g. for pattern `A*`). In such cases, a runtime exception will be thrown as the standard requires a valid row to continue the
matching.

Time attributes
---------------

In order to apply some subsequent queries on top of the `MATCH_RECOGNIZE` it might be required to use [time attributes](time_attributes.html). To select those there
are available two functions:

<table class="table table-bordered">
<thead>
<tr>
<th class="text-left" style="width: 40%">Function</th>
<th class="text-left">Description</th>
</tr>
</thead>

<tbody>
<tr>
<td>
<code>MATCH_ROWTIME()</code><br/>
</td>
<td><p>Returns the timestamp of the last row that was mapped to the given pattern.</p>
<p>The resulting attribute is a <a href="streaming/time_attributes.html">rowtime attribute</a> that can be used in subsequent time-based operations such as <a href="#joins">time-windowed joins</a> and <a href="#aggregations">group window or over window aggregations</a>.</p></td>
</tr>
<tr>
<td>
<code>MATCH_PROCTIME()</code><br/>
</td>
<td><p>Returns a <a href="streaming/time_attributes.html#processing-time">proctime attribute</a> that can be used in subsequent time-based operations such as <a href="#joins">time-windowed joins</a> and <a href="#aggregations">group window or over window aggregations</a>.</p></td>
</tr>
</tbody>
</table>

Controlling Memory Consumption
------------------------------

Expand Down

0 comments on commit 2790408

Please sign in to comment.