From 6c039c45014d5cb8546fa331c3d2e76071386611 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Mon, 27 Feb 2023 16:12:09 +0800 Subject: [PATCH] fix: invalid vg count --- source/libs/function/src/builtinsimpl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/source/libs/function/src/builtinsimpl.c b/source/libs/function/src/builtinsimpl.c index 9986af1691..9631aa76bb 100644 --- a/source/libs/function/src/builtinsimpl.c +++ b/source/libs/function/src/builtinsimpl.c @@ -5438,8 +5438,6 @@ int32_t blockDistFunction(SqlFunctionCtx* pCtx) { if (pDistInfo->maxRows < p1.maxRows) { pDistInfo->maxRows = p1.maxRows; } - pDistInfo->numOfVgroups += (p1.numOfTables != 0 ? 1 : 0); - pDistInfo->numOfVgroups += (p1.numOfTables != 0 ? 1 : 0); for (int32_t i = 0; i < tListLen(pDistInfo->blockRowsHisto); ++i) { pDistInfo->blockRowsHisto[i] += p1.blockRowsHisto[i]; -- GitLab