fix(query): avoid copy the unassigned column to the destination datablock after filter applied.

This commit is contained in:
Haojun Liao 2022-05-16 18:29:34 +08:00
parent 745f64aff6
commit 4bac6c4fef
1 changed files with 5 additions and 0 deletions

View File

@ -2055,6 +2055,11 @@ void extractQualifiedTupleByFilterResult(SSDataBlock* pBlock, const int8_t* rowR
SColumnInfoData* pDst = taosArrayGet(px->pDataBlock, i);
SColumnInfoData* pSrc = taosArrayGet(pBlock->pDataBlock, i);
// it is a reserved column for scalar function, and no data in this column yet.
if (pSrc->pData == NULL) {
continue;
}
int32_t numOfRows = 0;
for (int32_t j = 0; j < totalRows; ++j) {
if (rowRes[j] == 0) {