Skip to content

Commit

Permalink
move std() sum() to aggregating functions (#2322)
Browse files Browse the repository at this point in the history
  • Loading branch information
abby-cyber committed Nov 16, 2022
1 parent 3321edd commit 95848c5
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,44 @@ nebula> LOOKUP ON player \
```

## std()

std() 返回参数的总体标准差。

语法:`std(<expression>)`

- 返回类型:double。

示例:

```ngql
nebula> MATCH (v:player) RETURN std(v.player.age);
+-------------------+
| std(v.player.age) |
+-------------------+
| 6.423895701687502 |
+-------------------+
```

## sum()

sum() 返回参数的和。

语法:`sum(<expression>)`

- 返回类型:与原参数相同。

示例:

```ngql
nebula> MATCH (v:player) RETURN sum(v.player.age);
+-------------------+
| sum(v.player.age) |
+-------------------+
| 1698 |
+-------------------+
```

## 聚合示例

```ngql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,41 +150,3 @@ nebula> YIELD hash(toLower("HELLO NEBULA"));
+-------------------------------+
```


## std()

std() 返回参数的总体标准差。

语法:`std(<expression>)`

- 返回类型:double。

示例:

```ngql
nebula> MATCH (v:player) RETURN std(v.player.age);
+-------------------+
| std(v.player.age) |
+-------------------+
| 6.423895701687502 |
+-------------------+
```

## sum()

sum() 返回参数的和。

语法:`sum(<expression>)`

- 返回类型:与原参数相同。

示例:

```ngql
nebula> MATCH (v:player) RETURN sum(v.player.age);
+-------------------+
| sum(v.player.age) |
+-------------------+
| 1698 |
+-------------------+
```

0 comments on commit 95848c5

Please sign in to comment.