Skip to content

Commit

Permalink
tidy content
Browse files Browse the repository at this point in the history
  • Loading branch information
nicecui committed Jul 10, 2024
1 parent 219801c commit 5a1d7f8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
15 changes: 8 additions & 7 deletions docs/nightly/en/reference/sql/functions/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ functions in DataFusion. These functions include:

To find all the DataFusion functions, please refer to [DataFusion Functions](./df-functions).

In summary, GreptimeDB supports all SQL aggregate functions, scalar functions, and window functions in DataFusion. Users can safely
use these rich built-in functions in GreptimeDB to manipulate and analyze data.

### `arrow_cast`

`arrow_cast` function is from DataFusion's [`arrow_cast`](./df-functions#arrow-cast). It's illustrated as:
Expand Down Expand Up @@ -46,8 +43,12 @@ DataFusion [String Function](./df-functions#string-functions).GreptimeDB provide

### Math Functions

DataFusion [Math Function](./df-functions#math-functions).GreptimeDB provides:
DataFusion [Math Function](./df-functions#math-functions).

GreptimeDB provides:

* `clamp(value, lower, upper)` to restrict a given value between a lower and upper bound:

```sql
SELECT CLAMP(10, 0, 1);

Expand Down Expand Up @@ -230,9 +231,9 @@ SELECT isnull(NULL);
```


* `build()` to retrieve the GreptimeDB build info.
* `version()` to retrieve the GreptimeDB version.
* `database()` to retrieve the current session database:
* `build()` retrieves the GreptimeDB build info.
* `version()` retrieves the GreptimeDB version.
* `database()` retrieves the current session database:

```sql
select database();
Expand Down
4 changes: 1 addition & 3 deletions docs/nightly/zh/reference/sql/functions/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ The outling of this document is a little strange, as the content is classified b
* **标量函数**: 如 `ABS``COS``FLOOR` 等。详细列表请参阅 [标量函数](./df-functions#scalar-functions)
* **窗口函数**: 对相关的一组行记录执行计算。详细列表请参阅 [窗口函数](./df-functions#window-functions)

要查找所有 DataFusion 函数,请参阅 [DataFusion 函数](./df-functions)

总之,GreptimeDB 支持 DataFusion 中的所有 SQL 聚合函数、标量函数和窗口函数。用户可以安全地在 GreptimeDB 中使用这些丰富的内置函数来处理和分析数据。
要查看所有 DataFusion 函数,请参阅 [DataFusion 函数](./df-functions)

### `arrow_cast`

Expand Down

0 comments on commit 5a1d7f8

Please sign in to comment.