diff --git a/source/util/src/tcompression.c b/source/util/src/tcompression.c index 5af50d5fe5..1f7a244a53 100644 --- a/source/util/src/tcompression.c +++ b/source/util/src/tcompression.c @@ -2581,7 +2581,7 @@ int32_t tsCompressTinyint(void *pIn, int32_t nIn, int32_t nEle, void *pOut, int3 } else if (cmprAlg == TWO_STAGE_COMP) { int32_t len = tsCompressINTImp(pIn, nEle, pBuf, TSDB_DATA_TYPE_TINYINT); if (len < 0) { - return len; + return TSDB_CODE_THIRDPARTY_ERROR; } return tsCompressStringImp(pBuf, len, pOut, nOut); } else { @@ -2612,7 +2612,7 @@ int32_t tsCompressSmallint(void *pIn, int32_t nIn, int32_t nEle, void *pOut, int } else if (cmprAlg == TWO_STAGE_COMP) { int32_t len = tsCompressINTImp(pIn, nEle, pBuf, TSDB_DATA_TYPE_SMALLINT); if (len < 0) { - return len; + return TSDB_CODE_THIRDPARTY_ERROR; } return tsCompressStringImp(pBuf, len, pOut, nOut); } else { @@ -2643,7 +2643,7 @@ int32_t tsCompressInt(void *pIn, int32_t nIn, int32_t nEle, void *pOut, int32_t } else if (cmprAlg == TWO_STAGE_COMP) { int32_t len = tsCompressINTImp(pIn, nEle, pBuf, TSDB_DATA_TYPE_INT); if (len < 0) { - return len; + return TSDB_CODE_THIRDPARTY_ERROR; } return tsCompressStringImp(pBuf, len, pOut, nOut); } else { @@ -2674,7 +2674,7 @@ int32_t tsCompressBigint(void *pIn, int32_t nIn, int32_t nEle, void *pOut, int32 } else if (cmprAlg == TWO_STAGE_COMP) { int32_t len = tsCompressINTImp(pIn, nEle, pBuf, TSDB_DATA_TYPE_BIGINT); if (len < 0) { - return len; + return TSDB_CODE_THIRDPARTY_ERROR; } return tsCompressStringImp(pBuf, len, pOut, nOut); } else {