fix(query): recalculate the length of all null constant column.

This commit is contained in:
Haojun Liao 2022-04-26 15:05:03 +08:00
parent 842b75cd9d
commit 0debaf1e41
1 changed files with 5 additions and 1 deletions

View File

@ -79,7 +79,11 @@ int32_t colDataGetLength(const SColumnInfoData* pColumnInfoData, int32_t numOfRo
if (IS_VAR_DATA_TYPE(pColumnInfoData->info.type)) {
return pColumnInfoData->varmeta.length;
} else {
return pColumnInfoData->info.bytes * numOfRows;
if (pColumnInfoData->info.type == TSDB_DATA_TYPE_NULL) {
return 0;
} else {
return pColumnInfoData->info.bytes * numOfRows;
}
}
}