Skip to content

Commit

Permalink
Window function sum/avg does not support distinct document modificati…
Browse files Browse the repository at this point in the history
…on (#31066)
  • Loading branch information
caoliang-web authored Feb 21, 2024
1 parent 35f05fd commit c46bcb2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Unless required by applicable law or agreed to in writing, software distributed
Calculate the mean of the data within the window

```sql
AVG([DISTINCT | ALL] *expression*) [OVER (*analytic_clause*)]
AVG([ALL] *expression*) [OVER (*analytic_clause*)]
```

### example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Unless required by applicable law or agreed to in writing, software distributed
Calculate the sum of the data in the window

```sql
SUM([DISTINCT | ALL] expression) [OVER (analytic_clause)]
SUM([ALL] expression) [OVER (analytic_clause)]
```

### example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Unless required by applicable law or agreed to in writing, software distributed
计算窗口内数据的平均值

```sql
AVG([DISTINCT | ALL] *expression*) [OVER (*analytic_clause*)]
AVG([ALL] *expression*) [OVER (*analytic_clause*)]
```

### example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Unless required by applicable law or agreed to in writing, software distributed
计算窗口内数据的和

```sql
SUM([DISTINCT | ALL] expression) [OVER (analytic_clause)]
SUM([ALL] expression) [OVER (analytic_clause)]
```

### example
Expand Down

0 comments on commit c46bcb2

Please sign in to comment.