fix: binary NONE + NULL commit coredump
This commit is contained in:
parent
78f42c1c6a
commit
23f7b67b8a
|
@ -1698,7 +1698,7 @@ int32_t tsdbCmprColData(SColData *pColData, int8_t cmprAlg, SBlockCol *pBlockCol
|
||||||
size += pBlockCol->szBitmap;
|
size += pBlockCol->szBitmap;
|
||||||
|
|
||||||
// offset
|
// offset
|
||||||
if (IS_VAR_DATA_TYPE(pColData->type)) {
|
if (IS_VAR_DATA_TYPE(pColData->type) && pColData->flag != (HAS_NULL | HAS_NONE)) {
|
||||||
code = tsdbCmprData((uint8_t *)pColData->aOffset, sizeof(int32_t) * pColData->nVal, TSDB_DATA_TYPE_INT, cmprAlg,
|
code = tsdbCmprData((uint8_t *)pColData->aOffset, sizeof(int32_t) * pColData->nVal, TSDB_DATA_TYPE_INT, cmprAlg,
|
||||||
ppOut, nOut + size, &pBlockCol->szOffset, ppBuf);
|
ppOut, nOut + size, &pBlockCol->szOffset, ppBuf);
|
||||||
if (code) goto _exit;
|
if (code) goto _exit;
|
||||||
|
|
Loading…
Reference in New Issue