Skip to content

Commit

Permalink
Merge pull request #20412 from taosdata/fix/TD-23095
Browse files Browse the repository at this point in the history
fix:auto fill null column
  • Loading branch information
guanshengliang committed Mar 14, 2023
2 parents 6d09532 + 84ef1c7 commit 214c595
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions source/dnode/vnode/src/tq/tqRead.c
Expand Up @@ -707,7 +707,10 @@ int32_t tqRetrieveDataBlock2(SSDataBlock* pBlock, STqReader* pReader, SSubmitTbD
sourceIdx++;
targetIdx++;
} else {
ASSERT(0);
for (int32_t i = 0; i < pCol->nVal; i++) {
colDataSetNULL(pColData, i);
}
targetIdx++;
}
}
} else {
Expand Down Expand Up @@ -749,7 +752,8 @@ int32_t tqRetrieveDataBlock2(SSDataBlock* pBlock, STqReader* pReader, SSubmitTbD
sourceIdx++;
break;
} else {
ASSERT(0);
colDataSetNULL(pColData, i);
break;
}
}
}
Expand Down

0 comments on commit 214c595

Please sign in to comment.