From ca0d66458efc350088b5cf1129c2daae32f6df95 Mon Sep 17 00:00:00 2001 From: shenglian zhou Date: Sun, 19 Sep 2021 14:15:01 +0800 Subject: [PATCH] add mavg/csum group by tbname support --- src/client/src/tscUtil.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index 24080662fa..4e9f6ad822 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -268,6 +268,8 @@ bool tscIsProjectionQueryOnSTable(SQueryInfo* pQueryInfo, int32_t tableIndex) { functionId != TSDB_FUNC_TS_COMP && functionId != TSDB_FUNC_DIFF && functionId != TSDB_FUNC_DERIVATIVE && + functionId != TSDB_FUNC_MAVG && + functionId != TSDB_FUNC_CSUM && functionId != TSDB_FUNC_TS_DUMMY && functionId != TSDB_FUNC_TID_TAG && functionId != TSDB_FUNC_CEIL && @@ -327,7 +329,8 @@ bool tscIsDiffDerivQuery(SQueryInfo* pQueryInfo) { continue; } - if (f == TSDB_FUNC_DIFF || f == TSDB_FUNC_DERIVATIVE) { + if (f == TSDB_FUNC_DIFF || f == TSDB_FUNC_DERIVATIVE || + f == TSDB_FUNC_CSUM || f == TSDB_FUNC_MAVG) { return true; } } -- GitLab