From ec75ddec833e995da143076c839e9acfa29177cc Mon Sep 17 00:00:00 2001 From: Ganlin Zhao Date: Wed, 28 Dec 2022 17:27:23 +0800 Subject: [PATCH] fix(query): fix count/hyperloglog return additional row in group by when queryPolicy is set to 3. --- include/libs/nodes/plannodes.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/libs/nodes/plannodes.h b/include/libs/nodes/plannodes.h index d62bdb93cf..d885665117 100644 --- a/include/libs/nodes/plannodes.h +++ b/include/libs/nodes/plannodes.h @@ -121,6 +121,7 @@ typedef struct SAggLogicNode { bool hasLast; bool hasTimeLineFunc; bool onlyHasKeepOrderFunc; + bool hasGroupKeyOptimized; } SAggLogicNode; typedef struct SProjectLogicNode { @@ -402,6 +403,7 @@ typedef struct SAggPhysiNode { SNodeList* pGroupKeys; SNodeList* pAggFuncs; bool mergeDataBlock; + bool groupKeyOptimized; } SAggPhysiNode; typedef struct SDownstreamSourceNode { -- GitLab