From e3bfc9ddf343fe903edebd809f21561413cfeb65 Mon Sep 17 00:00:00 2001 From: Ganlin Zhao Date: Wed, 15 Feb 2023 17:06:20 +0800 Subject: [PATCH] docs: add notes for countAlwaysReturnValue parameter --- docs/en/14-reference/12-config/index.md | 1 + docs/zh/14-reference/12-config/index.md | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/en/14-reference/12-config/index.md b/docs/en/14-reference/12-config/index.md index afa9f5a8ae..522109337f 100644 --- a/docs/en/14-reference/12-config/index.md +++ b/docs/en/14-reference/12-config/index.md @@ -182,6 +182,7 @@ The parameters described in this document by the effect that they have on the sy | Meaning | count()/hyperloglog() return value or not if the result data is NULL | | Vlue Range | 0:Return empty line,1:Return 0 | | Default | 1 | +| Notes | When this parameter is setting to 1: for queries containing GROUP BY, PARTITION BY and INTERVAL clause, count/hyperloglog functions do not return value; if count/hyperloglog used together with other aggregate functions, other aggregate functions return NULL. | ### maxNumOfDistinctRes diff --git a/docs/zh/14-reference/12-config/index.md b/docs/zh/14-reference/12-config/index.md index 28b409de30..2506f403cf 100644 --- a/docs/zh/14-reference/12-config/index.md +++ b/docs/zh/14-reference/12-config/index.md @@ -192,7 +192,7 @@ taos --dump-config | 取值范围 | 0 表示包含函数名,1 表示不包含函数名。 | | 缺省值 | 0 | -### countAlwaysReturnValue +### countAlwaysReturnValue | 属性 | 说明 | | -------- | -------------------------------- | @@ -200,6 +200,7 @@ taos --dump-config | 含义 | count/hyperloglog函数在数据为空或者NULL的情况下是否返回值 | | 取值范围 | 0:返回空行,1:返回 0 | | 缺省值 | 1 | +| 补充说明 | 该参数设置为 1 时: 对于查询中含有 group by,partition by 以及 interval 子句的情况下, count/hyperloglog 函数结果仍然返回空行; 查询中 count/hyperloglog 和其他聚合函数一起使用时,其他聚合函数输出结果为NULL | ## 区域相关