From 3f84f129007a27e2bf928f99a5c6350d4dc17f65 Mon Sep 17 00:00:00 2001 From: Benguang Zhao Date: Mon, 10 Oct 2022 16:39:01 +0800 Subject: [PATCH] fix: set precision of timestamp for QueryAttr in tscCreateQueryFromQueryInfo --- src/client/src/tscUtil.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index 0f293299d2..40672e9248 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -5238,6 +5238,8 @@ int32_t tscCreateQueryFromQueryInfo(SQueryInfo* pQueryInfo, SQueryAttr* pQueryAt STableMetaInfo* pTableMetaInfo = pQueryInfo->pTableMetaInfo[0]; + pQueryAttr->precision = pTableMetaInfo->pTableMeta->tableInfo.precision; + if (pQueryInfo->groupbyExpr.numOfGroupCols > 0) { pQueryAttr->pGroupbyExpr = calloc(1, sizeof(SGroupbyExpr)); *(pQueryAttr->pGroupbyExpr) = pQueryInfo->groupbyExpr; -- GitLab