fix(query): change some assert to ASSERT macro
This commit is contained in:
parent
daea9b4d58
commit
471b67ae45
|
@ -89,7 +89,7 @@ static FORCE_INLINE _getDoubleValue_fn_t getVectorDoubleValueFn(int32_t srcType)
|
||||||
} else if (srcType == TSDB_DATA_TYPE_NULL) {
|
} else if (srcType == TSDB_DATA_TYPE_NULL) {
|
||||||
p = NULL;
|
p = NULL;
|
||||||
} else {
|
} else {
|
||||||
assert(0);
|
ASSERT(0);
|
||||||
}
|
}
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
|
@ -179,7 +179,7 @@ _getBigintValue_fn_t getVectorBigintValueFn(int32_t srcType) {
|
||||||
} else if (srcType==TSDB_DATA_TYPE_NULL){
|
} else if (srcType==TSDB_DATA_TYPE_NULL){
|
||||||
p = NULL;
|
p = NULL;
|
||||||
} else {
|
} else {
|
||||||
assert(0);
|
ASSERT(0);
|
||||||
}
|
}
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
@ -1596,7 +1596,7 @@ _bin_scalar_fn_t getBinScalarOperatorFn(int32_t binFunctionId) {
|
||||||
case OP_TYPE_JSON_CONTAINS:
|
case OP_TYPE_JSON_CONTAINS:
|
||||||
return vectorJsonContains;
|
return vectorJsonContains;
|
||||||
default:
|
default:
|
||||||
assert(0);
|
ASSERT(0);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue