Skip to content

Commit 27b5bde

Browse files
authored
update udtf description (#781)
1 parent 39e4620 commit 27b5bde

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/UserGuide/Master/Table/User-Manual/User-defined-function.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ IoTDB's table model supports three types of UDFs, as detailed below:
3131
|-----------------------------------------|---------------|--------------------------------|
3232
| `UDSF(User-defined Scalar Function)` | Scalar Function | Processes ​1 row of k-column data, outputs ​1 row of 1-column data (one-to-one mapping). |
3333
| `UDAF(User-defined Aggregate Function)` | Aggregate Function | Processes ​m rows of k-column data, outputs ​1 row of 1-column data (many-to-one reduction). |
34-
| `UDTF(User-defined Table Function)` | Table-Valued Function | Generates a result set in "table" format based on dynamic input parameters. |
34+
| `UDTF(User-defined Table Function)` | Table-Valued Function | Processes ​​0 or 1 table (m rows × k columns)​​, outputs ​​1 table (x rows × y columns)​​. |
3535

3636
* `UDSF` can be used in any clause or expression where scalar functions are allowed, such as: SELECT clauses, WHERE conditions, etc.
3737

src/UserGuide/latest-Table/User-Manual/User-defined-function.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ IoTDB's table model supports three types of UDFs, as detailed below:
3131
|-----------------------------------------|---------------|--------------------------------|
3232
| `UDSF(User-defined Scalar Function)` | Scalar Function | Processes ​1 row of k-column data, outputs ​1 row of 1-column data (one-to-one mapping). |
3333
| `UDAF(User-defined Aggregate Function)` | Aggregate Function | Processes ​m rows of k-column data, outputs ​1 row of 1-column data (many-to-one reduction). |
34-
| `UDTF(User-defined Table Function)` | Table-Valued Function | Generates a result set in "table" format based on dynamic input parameters. |
34+
| `UDTF(User-defined Table Function)` | Table-Valued Function | Processes ​​0 or 1 table (m rows × k columns)​​, outputs ​​1 table (x rows × y columns)​​. |
3535

3636
* `UDSF` can be used in any clause or expression where scalar functions are allowed, such as: SELECT clauses, WHERE conditions, etc.
3737

src/zh/UserGuide/Master/Table/User-Manual/User-defined-function.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ IoTDB 表模型中支持三种类型的 UDF ,如下表所示。
3131
|-----------------------------------------|------|--------------------------------|
3232
| `UDSF(User-defined Scalar Function)` | 标量函数 | 输入 k 列 1 行数据,输出1 列 1 行数据(一对一)。 |
3333
| `UDAF(User-defined Aggregate Function)` | 聚合函数 | 输入k 列 m 行数据,输出1 列 1 行数据(多对一)。 |
34-
| `UDTF(User-defined Table Function)` | 表函数 | 根据输入的动态参数生成“表”形式的结果集|
34+
| `UDTF(User-defined Table Function)` | 表函数 | 输入0或1张表(k 列 m 行),输出1张表(x 行 y 列)|
3535

3636
* `UDSF` 可用于标量函数出现的任何子句和表达式中,如select子句、where子句等。
3737
* `select udsf1(s1) from table1 where udsf2(s1)>0`

src/zh/UserGuide/latest-Table/User-Manual/User-defined-function.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ UDF(User Defined Function)即用户自定义函数,IoTDB 提供多种内
2727

2828
IoTDB 表模型中支持三种类型的 UDF ,如下表所示。
2929

30-
| UDF 类型 | 函数类型 | 描述 |
31-
|-----------------------------------------|------|--------------------------------|
32-
| `UDSF(User-defined Scalar Function)` | 标量函数 | 输入 k 列 1 行数据,输出1 列 1 行数据(一对一)。 |
33-
| `UDAF(User-defined Aggregate Function)` | 聚合函数 | 输入k 列 m 行数据,输出1 列 1 行数据(多对一)。 |
34-
| `UDTF(User-defined Table Function)` | 表函数 | 根据输入的动态参数生成“表”形式的结果集。 |
30+
| UDF 类型 | 函数类型 | 描述 |
31+
|-----------------------------------------|------|----------------------------------|
32+
| `UDSF(User-defined Scalar Function)` | 标量函数 | 输入 k 列 1 行数据,输出1 列 1 行数据(一对一)。 |
33+
| `UDAF(User-defined Aggregate Function)` | 聚合函数 | 输入k 列 m 行数据,输出1 列 1 行数据(多对一)。 |
34+
| `UDTF(User-defined Table Function)` | 表函数 | 输入0或1张表(k 列 m 行),输出1张表(x 行 y 列)。 |
3535

3636
* `UDSF` 可用于标量函数出现的任何子句和表达式中,如select子句、where子句等。
3737
* `select udsf1(s1) from table1 where udsf2(s1)>0`

0 commit comments

Comments
 (0)