fix: encode error return code issue

This commit is contained in:
dapan1121 2024-08-29 18:38:51 +08:00
parent 99102d47ac
commit c633468ec7
1 changed files with 1 additions and 0 deletions

View File

@ -2930,6 +2930,7 @@ int32_t blockEncode(const SSDataBlock* pBlock, char* data, int32_t numOfCols) {
if (*rows <= 0) {
uError("Invalid rows %d in block", *rows);
terrno = TSDB_CODE_QRY_EXECUTOR_INTERNAL_ERROR;
return -1;
}
int32_t* cols = (int32_t*)data;