提交 fb2bb048 编写于 作者: G Ganlin Zhao

fix(query): fix interp pResBlock->rows > capacity cause assert failure

上级 92d42fab
...@@ -2154,9 +2154,7 @@ static void doKeepLinearInfo(STimeSliceOperatorInfo* pSliceInfo, const SSDataBlo ...@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册