Skip to content

Commit

Permalink
[FLINK-24772][docs] Add documentation for individual window table-val…
Browse files Browse the repository at this point in the history
…ued function (apache#17885)
  • Loading branch information
beyond1920 authored Dec 28, 2021
1 parent fe3dfbc commit 0797708
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
10 changes: 1 addition & 9 deletions docs/content.zh/docs/dev/table/sql/queries/window-tvf.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ See more how to apply further computations based on windowing TVF:
- [Window Aggregation]({{< ref "docs/dev/table/sql/queries/window-agg" >}})
- [Window TopN]({{< ref "docs/dev/table/sql/queries/window-topn">}})
- [Window Join]({{< ref "docs/dev/table/sql/queries/window-join">}})
- [Window Deduplication]({{< ref "docs/dev/table/sql/queries/window-deduplication">}})

## Window Functions

Expand Down Expand Up @@ -100,9 +101,6 @@ Flink SQL> SELECT * FROM Bid;
| 2020-04-15 08:17 | 6.00 | F |
+------------------+-------+------+

-- NOTE: Currently Flink doesn't support evaluating individual window table-valued function,
-- window table-valued function should be used with aggregate operation,
-- this example is just used for explaining the syntax and the data produced by table-valued function.
Flink SQL> SELECT * FROM TABLE(
TUMBLE(TABLE Bid, DESCRIPTOR(bidtime), INTERVAL '10' MINUTES));
-- or with the named params
Expand Down Expand Up @@ -167,9 +165,6 @@ HOP(TABLE data, DESCRIPTOR(timecol), slide, size [, offset ])
Here is an example invocation on the `Bid` table:

```sql
-- NOTE: Currently Flink doesn't support evaluating individual window table-valued function,
-- window table-valued function should be used with aggregate operation,
-- this example is just used for explaining the syntax and the data produced by table-valued function.
> SELECT * FROM TABLE(
HOP(TABLE Bid, DESCRIPTOR(bidtime), INTERVAL '5' MINUTES, INTERVAL '10' MINUTES));
-- or with the named params
Expand Down Expand Up @@ -243,9 +238,6 @@ CUMULATE(TABLE data, DESCRIPTOR(timecol), step, size)
Here is an example invocation on the Bid table:

```sql
-- NOTE: Currently Flink doesn't support evaluating individual window table-valued function,
-- window table-valued function should be used with aggregate operation,
-- this example is just used for explaining the syntax and the data produced by table-valued function.
> SELECT * FROM TABLE(
CUMULATE(TABLE Bid, DESCRIPTOR(bidtime), INTERVAL '2' MINUTES, INTERVAL '10' MINUTES));
-- or with the named params
Expand Down
10 changes: 1 addition & 9 deletions docs/content/docs/dev/table/sql/queries/window-tvf.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ See more how to apply further computations based on windowing TVF:
- [Window Aggregation]({{< ref "docs/dev/table/sql/queries/window-agg" >}})
- [Window TopN]({{< ref "docs/dev/table/sql/queries/window-topn">}})
- [Window Join]({{< ref "docs/dev/table/sql/queries/window-join">}})
- [Window Deduplication]({{< ref "docs/dev/table/sql/queries/window-deduplication">}})

## Window Functions

Expand Down Expand Up @@ -100,9 +101,6 @@ Flink SQL> SELECT * FROM Bid;
| 2020-04-15 08:17 | 6.00 | F |
+------------------+-------+------+

-- NOTE: Currently Flink doesn't support evaluating individual window table-valued function,
-- window table-valued function should be used with aggregate operation,
-- this example is just used for explaining the syntax and the data produced by table-valued function.
Flink SQL> SELECT * FROM TABLE(
TUMBLE(TABLE Bid, DESCRIPTOR(bidtime), INTERVAL '10' MINUTES));
-- or with the named params
Expand Down Expand Up @@ -167,9 +165,6 @@ HOP(TABLE data, DESCRIPTOR(timecol), slide, size [, offset ])
Here is an example invocation on the `Bid` table:

```sql
-- NOTE: Currently Flink doesn't support evaluating individual window table-valued function,
-- window table-valued function should be used with aggregate operation,
-- this example is just used for explaining the syntax and the data produced by table-valued function.
> SELECT * FROM TABLE(
HOP(TABLE Bid, DESCRIPTOR(bidtime), INTERVAL '5' MINUTES, INTERVAL '10' MINUTES));
-- or with the named params
Expand Down Expand Up @@ -243,9 +238,6 @@ CUMULATE(TABLE data, DESCRIPTOR(timecol), step, size)
Here is an example invocation on the Bid table:

```sql
-- NOTE: Currently Flink doesn't support evaluating individual window table-valued function,
-- window table-valued function should be used with aggregate operation,
-- this example is just used for explaining the syntax and the data produced by table-valued function.
> SELECT * FROM TABLE(
CUMULATE(TABLE Bid, DESCRIPTOR(bidtime), INTERVAL '2' MINUTES, INTERVAL '10' MINUTES));
-- or with the named params
Expand Down

0 comments on commit 0797708

Please sign in to comment.