提交 474c47b0 编写于 作者: wmmhello's avatar wmmhello

modify unique function like top

上级 40c6ea3a
......@@ -5194,7 +5194,7 @@ static bool unique_function_setup(SQLFunctionCtx *pCtx, SResultRowCellInfo* pRes
}
static void do_unique_function(SQLFunctionCtx *pCtx, SUniqueFuncInfo *pInfo, TSKEY timestamp, char *pData, char *tag){
tValuePair *unique = taosHashGet(pCtx->pUniqueSet, pData, pCtx->inputBytes);
UniqueUnit *unique = taosHashGet(pCtx->pUniqueSet, pData, pCtx->inputBytes);
if (unique == NULL) {
size_t size = sizeof(UniqueUnit) + pCtx->inputBytes + pCtx->tagInfo.tagsLen;
char *tmp = pInfo->res + pInfo->num * size;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册