diff --git a/src/query/src/qExecutor.c b/src/query/src/qExecutor.c index 719c1de25254370c6644d777a75fb34702162ef1..b5960b9e58ff5da77c50cfd20e134880320380f7 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -1311,7 +1311,7 @@ static void doHashGroupbyAgg(SOperatorInfo* pOperator, SGroupbyOperatorInfo *pIn continue; } } else { - if (memcmp(pInfo->prevData, val, bytes)) { + if (memcmp(pInfo->prevData, val, bytes) == 0) { num++; continue; }