From 8c3ff153428caaf3d823cb1f34f9b499a26028c1 Mon Sep 17 00:00:00 2001 From: Ganlin Zhao Date: Tue, 29 Nov 2022 18:00:44 +0800 Subject: [PATCH] fix partition by column --- source/libs/executor/src/executorimpl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/libs/executor/src/executorimpl.c b/source/libs/executor/src/executorimpl.c index 094060b213..6f6097d258 100644 --- a/source/libs/executor/src/executorimpl.c +++ b/source/libs/executor/src/executorimpl.c @@ -1507,7 +1507,8 @@ static int32_t doOpenAggregateOptr(SOperatorInfo* pOperator) { while (1) { SSDataBlock* pBlock = downstream->fpSet.getNextFn(downstream); if (pBlock == NULL) { - if (!hasValidBlock) { + if (!hasValidBlock && + downstream->operatorType != QUERY_NODE_PHYSICAL_PLAN_PARTITION) { createDataBlockForEmptyInput(pOperator, &pBlock); if (pBlock == NULL) { break; -- GitLab