Skip to content

Commit

Permalink
doc: update window function design doc (#5780)
Browse files Browse the repository at this point in the history
close #5781
  • Loading branch information
SeaRise authored Sep 5, 2022
1 parent d32bf10 commit f4a3ea0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/design/2022-05-12-window-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Children task's cost *= 0.05
### The Logic of Window Function in TiFlash
#### Major additions
- IWindowFunction
Defines execution functions of a window function(row_number, rank, dense_rank).
Defines execution functions of a window function(row_number, rank, dense_rank, lead, lag).
- WindowDescription
Define a window, including the name, frame, functions of a window.
- WindowBlockInputStream
Expand Down Expand Up @@ -125,7 +125,7 @@ Children task's cost *= 0.05
##### Flow Chart
![tiflash-window-function-flow-chart](./images/tiflash-window-function-flow-chart.jpg)
### Support and Limit
- Compared with TiDB, currently only row_number, rank, dense_rank functions are supported.
- Compared with TiDB, currently only row_number, rank, dense_rank, lead, lag functions are supported.

| Feature | support |
| ----- | ----- |
Expand All @@ -136,7 +136,7 @@ Children task's cost *= 0.05
| INTERVAL syntax for DateTime RANGE OFFSET frame | Not supported |
| Calculating aggregate functions over a frame | Not supported |
| rank(), dense_rank(), row_number() | Supported |
| lag/lead(value, offset, default) | Not supported |
| lag/lead(value, offset, default) | Supported |

- Compared with TiDB or MySQL, the result may have some differences.
For example, compare the calculation results of TiFlash and TiDB:
Expand Down

0 comments on commit f4a3ea0

Please sign in to comment.