Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move std() sum() to aggregating functions #2322

Merged
merged 1 commit into from
Nov 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,44 @@ nebula> MATCH (n: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 |
+-------------------+
```