fix(query): fix interp pResBlock->rows > capacity cause assert failure
This commit is contained in:
parent
92d42fab11
commit
fb2bb0481e
|
@ -2154,9 +2154,7 @@ static void doKeepLinearInfo(STimeSliceOperatorInfo* pSliceInfo, const SSDataBlo
|
||||||
|
|
||||||
static void genInterpolationResult(STimeSliceOperatorInfo* pSliceInfo, SExprSupp* pExprSup, SSDataBlock* pResBlock) {
|
static void genInterpolationResult(STimeSliceOperatorInfo* pSliceInfo, SExprSupp* pExprSup, SSDataBlock* pResBlock) {
|
||||||
int32_t rows = pResBlock->info.rows;
|
int32_t rows = pResBlock->info.rows;
|
||||||
if (rows >= pResBlock->info.capacity) {
|
blockDataEnsureCapacity(pResBlock, rows + 1);
|
||||||
return;
|
|
||||||
}
|
|
||||||
// todo set the correct primary timestamp column
|
// todo set the correct primary timestamp column
|
||||||
|
|
||||||
// output the result
|
// output the result
|
||||||
|
|
Loading…
Reference in New Issue