fix(query): remove a false assert.
This commit is contained in:
parent
cdc2002e70
commit
9b3d7aa410
|
@ -1446,11 +1446,6 @@ int32_t diffFunction(SqlFunctionCtx* pCtx) {
|
||||||
|
|
||||||
// initial value is not set yet
|
// initial value is not set yet
|
||||||
if (numOfElems <= 0) {
|
if (numOfElems <= 0) {
|
||||||
/*
|
|
||||||
* 1. current block and blocks before are full of null
|
|
||||||
* 2. current block may be null value
|
|
||||||
*/
|
|
||||||
assert(pCtx->hasNull);
|
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
return (isFirstBlock) ? numOfElems - 1 : numOfElems;
|
return (isFirstBlock) ? numOfElems - 1 : numOfElems;
|
||||||
|
|
Loading…
Reference in New Issue