Skip to content

Commit

Permalink
Merge pull request #4068 from cstork/patch-1
Browse files Browse the repository at this point in the history
Update window_functions.md: correct description of rank_dense()
  • Loading branch information
szarnyasg authored Nov 15, 2024
2 parents 94d6a5f + 09642f2 commit 3cf98f6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/sql/functions/window_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ The table below shows the available general window functions.
| [`nth_value(expr, nth[ IGNORE NULLS])`](#nth_valueexpr-nth-ignore-nulls) | Returns `expr` evaluated at the nth row (among rows with a non-null value of `expr` if `IGNORE NULLS` is set) of the window frame (counting from 1); `NULL` if no such row. |
| [`ntile(num_buckets)`](#ntilenum_buckets) | An integer ranging from 1 to `num_buckets`, dividing the partition as equally as possible. |
| [`percent_rank()`](#percent_rank) | The relative rank of the current row: `(rank() - 1) / (total partition rows - 1)`. |
| [`rank_dense()`](#rank_dense) | The rank of the current row *with gaps;* same as `row_number` of its first peer. |
| [`rank_dense()`](#rank_dense) | The rank of the current row *without gaps. |
| [`rank()`](#rank) | The rank of the current row *with gaps;* same as `row_number` of its first peer. |
| [`row_number()`](#row_number) | The number of the current row within the partition, counting from 1. |

Expand Down Expand Up @@ -151,10 +151,9 @@ The table below shows the available general window functions.

<div class="nostroke_table"></div>

| **Description** | The rank of the current row *with gaps;* same as `row_number` of its first peer. |
| **Description** | The rank of the current row *without gaps*. |
| **Return Type** | `BIGINT` |
| **Example** | `rank_dense()` |
| **Alias** | `rank()` |

#### `rank()`

Expand All @@ -163,7 +162,6 @@ The table below shows the available general window functions.
| **Description** | The rank of the current row *with gaps;* same as `row_number` of its first peer. |
| **Return Type** | `BIGINT` |
| **Example** | `rank()` |
| **Alias** | `rank_dense()` |

#### `row_number()`

Expand Down

0 comments on commit 3cf98f6

Please sign in to comment.