fix: add validation

This commit is contained in:
dapan1121 2024-09-02 17:18:40 +08:00
parent 4e6781d753
commit 24eb6c439b
1 changed files with 1 additions and 1 deletions

View File

@ -3009,7 +3009,7 @@ int32_t blockEncode(const SSDataBlock* pBlock, char* data, int32_t numOfCols) {
data += colSizes[col];
}
if (colSizes[col] <= 0) {
if (colSizes[col] <= 0 && !colDataIsNull_s(pColRes, 0)) {
uError("Invalid colSize:%d while encoding block", colSizes[col]);
ASSERT(0);
terrno = TSDB_CODE_QRY_EXECUTOR_INTERNAL_ERROR;