remove assert
This commit is contained in:
parent
9b4414c12e
commit
98e4064bd5
|
@ -4770,7 +4770,6 @@ int32_t tDecompressDataToBuffer(void *input, SCompressInfo *info, SBuffer *outpu
|
|||
|
||||
// handle all types, including var data
|
||||
void valueSetDatum(SValue *pVal, int8_t type, void *pDatum, uint32_t len) {
|
||||
assert(type == pVal->type);
|
||||
if (IS_VAR_DATA_TYPE(type) || type == TSDB_DATA_TYPE_DECIMAL) {
|
||||
pVal->pData = pDatum;
|
||||
pVal->nData = len;
|
||||
|
|
|
@ -635,7 +635,6 @@ static int32_t mndCreateStbForStream(SMnode *pMnode, STrans *pTrans, const SStre
|
|||
uint8_t prec = 0, scale = 0;
|
||||
extractDecimalTypeInfoFromBytes(&pField->bytes, &prec, &scale);
|
||||
pField->typeMod = decimalCalcTypeMod(prec, scale);
|
||||
ASSERT(pField->flags & COL_HAS_TYPE_MOD);// TODO wjm
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -972,7 +972,6 @@ static int32_t decimalDivide(Decimal* pX, const SDataType* pXT, const Decimal* p
|
|||
}
|
||||
|
||||
int8_t deltaScale = pOT->scale + pYT->scale - pXT->scale;
|
||||
assert(deltaScale >= 0);
|
||||
|
||||
Decimal xTmp = *pX;
|
||||
decimal128Abs(&xTmp); // TODO wjm test decimal64 / decimal64
|
||||
|
@ -1264,7 +1263,6 @@ static int64_t int64FromDecimal64(const DecimalType* pDec, uint8_t prec, uint8_t
|
|||
Decimal64 rounded = *(Decimal64*)pDec;
|
||||
bool overflow = false;
|
||||
decimal64RoundWithPositiveScale(&rounded, prec, scale, prec, 0, ROUND_TYPE_HALF_ROUND_UP, &overflow);
|
||||
assert(!overflow); // TODO wjm remove this assert
|
||||
if (overflow) return 0;
|
||||
|
||||
return DECIMAL64_GET_VALUE(&rounded);
|
||||
|
@ -1274,7 +1272,6 @@ static uint64_t uint64FromDecimal64(const DecimalType* pDec, uint8_t prec, uint8
|
|||
Decimal64 rounded = *(Decimal64*)pDec;
|
||||
bool overflow = false;
|
||||
decimal64RoundWithPositiveScale(&rounded, prec, scale, prec, 0, ROUND_TYPE_HALF_ROUND_UP, &overflow);
|
||||
assert(!overflow); // TODO wjm remove this assert
|
||||
if (overflow) return 0;
|
||||
|
||||
return DECIMAL64_GET_VALUE(&rounded);
|
||||
|
|
Loading…
Reference in New Issue