From 1a6511fee065955332775e7dffc693e44d49090c Mon Sep 17 00:00:00 2001 From: Ganlin Zhao Date: Wed, 28 Jun 2023 15:09:42 +0800 Subject: [PATCH 1/4] fix unique document --- docs/en/12-taos-sql/10-function.md | 4 ++-- docs/zh/12-taos-sql/10-function.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en/12-taos-sql/10-function.md b/docs/en/12-taos-sql/10-function.md index 6b62950ecc..d46e01da41 100644 --- a/docs/en/12-taos-sql/10-function.md +++ b/docs/en/12-taos-sql/10-function.md @@ -1054,11 +1054,11 @@ TOP(expr, k) UNIQUE(expr) ``` -**Description**: The values that occur the first time in the specified column. The effect is similar to `distinct` keyword, but it can also be used to match tags or timestamp. The first occurrence of a timestamp or tag is used. +**Description**: The values that occur the first time in the specified column. The effect is similar to `distinct` keyword, but it can also be used to match tags or timestamp which correspond to first occurrence of the record. **Return value type**:Same as the data type of the column being operated upon -**Applicable column types**: Any data types except for timestamp +**Applicable column types**: Any data types **Applicable table types**: table, STable diff --git a/docs/zh/12-taos-sql/10-function.md b/docs/zh/12-taos-sql/10-function.md index b4785dc5e6..e9ab75c135 100644 --- a/docs/zh/12-taos-sql/10-function.md +++ b/docs/zh/12-taos-sql/10-function.md @@ -1046,11 +1046,11 @@ TOP(expr, k) UNIQUE(expr) ``` -**功能说明**:返回该列的数值首次出现的值。该函数功能与 distinct 相似,但是可以匹配标签和时间戳信息。可以针对除时间列以外的字段进行查询,可以匹配标签和时间戳,其中的标签和时间戳是第一次出现时刻的标签和时间戳。 +**功能说明**:返回该列数据首次出现的值。该函数功能与 distinct 相似,可以匹配标签和时间戳,对应数据第一次出现时刻的标签和时间戳。 **返回数据类型**:同应用的字段。 -**适用数据类型**:适合于除时间类型以外的字段。 +**适用数据类型**:全部类型字段。 **适用于**: 表和超级表。 From 4f613220d102d64ddccfe3de31ae1a0aeabcae3f Mon Sep 17 00:00:00 2001 From: Ganlin Zhao Date: Wed, 28 Jun 2023 15:13:35 +0800 Subject: [PATCH 2/4] fix sample docs --- docs/en/12-taos-sql/10-function.md | 8 ++------ docs/zh/12-taos-sql/10-function.md | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/docs/en/12-taos-sql/10-function.md b/docs/en/12-taos-sql/10-function.md index d46e01da41..fa1890cc27 100644 --- a/docs/en/12-taos-sql/10-function.md +++ b/docs/en/12-taos-sql/10-function.md @@ -998,18 +998,14 @@ SAMPLE(expr, k) **Description**: _k_ sampling values of a specific column. The applicable range of _k_ is [1,1000]. -**Return value type**: Same as the column being operated plus the associated timestamp +**Return value type**: Same as the column being operated -**Applicable data types**: Any data type except for tags of STable +**Applicable data types**: Any data type **Applicable nested query**: Inner query and Outer query **Applicable table types**: standard tables and supertables -**More explanations**: - -- This function cannot be used in expression calculation. - ### TAIL diff --git a/docs/zh/12-taos-sql/10-function.md b/docs/zh/12-taos-sql/10-function.md index e9ab75c135..d25292e8b8 100644 --- a/docs/zh/12-taos-sql/10-function.md +++ b/docs/zh/12-taos-sql/10-function.md @@ -990,18 +990,14 @@ SAMPLE(expr, k) **功能说明**: 获取数据的 k 个采样值。参数 k 的合法输入范围是 1≤ k ≤ 1000。 -**返回结果类型**: 同原始数据类型, 返回结果中带有该行记录的时间戳。 +**返回结果类型**: 同原始数据类型。 -**适用数据类型**: 在超级表查询中使用时,不能应用在标签之上。 +**适用数据类型**: 全部类型字段。 **嵌套子查询支持**: 适用于内层查询和外层查询。 **适用于**:表和超级表。 -**使用说明**: - -- 不能参与表达式计算;该函数可以应用在普通表和超级表上; - ### TAIL From 1d314b9ac205ca4d603dd4318f5cfce1d47dbd72 Mon Sep 17 00:00:00 2001 From: Ganlin Zhao <36554565+glzhao89@users.noreply.github.com> Date: Wed, 28 Jun 2023 16:10:04 +0800 Subject: [PATCH 3/4] Update 10-function.md --- docs/en/12-taos-sql/10-function.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/12-taos-sql/10-function.md b/docs/en/12-taos-sql/10-function.md index fa1890cc27..081d5a8d8a 100644 --- a/docs/en/12-taos-sql/10-function.md +++ b/docs/en/12-taos-sql/10-function.md @@ -1050,7 +1050,7 @@ TOP(expr, k) UNIQUE(expr) ``` -**Description**: The values that occur the first time in the specified column. The effect is similar to `distinct` keyword, but it can also be used to match tags or timestamp which correspond to first occurrence of the record. +**Description**: The values that occur the first time in the specified column. The effect is similar to `distinct` keyword. **Return value type**:Same as the data type of the column being operated upon From 1d1d35ea79ba7a2750bfb9b9dc063bd4bf79b111 Mon Sep 17 00:00:00 2001 From: Ganlin Zhao <36554565+glzhao89@users.noreply.github.com> Date: Wed, 28 Jun 2023 16:11:13 +0800 Subject: [PATCH 4/4] Update 10-function.md --- docs/zh/12-taos-sql/10-function.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/zh/12-taos-sql/10-function.md b/docs/zh/12-taos-sql/10-function.md index d25292e8b8..4820eb4674 100644 --- a/docs/zh/12-taos-sql/10-function.md +++ b/docs/zh/12-taos-sql/10-function.md @@ -1042,7 +1042,7 @@ TOP(expr, k) UNIQUE(expr) ``` -**功能说明**:返回该列数据首次出现的值。该函数功能与 distinct 相似,可以匹配标签和时间戳,对应数据第一次出现时刻的标签和时间戳。 +**功能说明**:返回该列数据首次出现的值。该函数功能与 distinct 相似。 **返回数据类型**:同应用的字段。