未验证 提交 6ce36a08 编写于 作者: H Haojun Liao 提交者: GitHub

Merge pull request #12214 from taosdata/feature/3.0_liaohj

fix(query): remove a false assert.
...@@ -226,7 +226,6 @@ typedef struct SExecTaskInfo { ...@@ -226,7 +226,6 @@ typedef struct SExecTaskInfo {
char* sql; // query sql string char* sql; // query sql string
jmp_buf env; // jump to this position when error happens. jmp_buf env; // jump to this position when error happens.
EOPTR_EXEC_MODEL execModel; // operator execution model [batch model|stream model] EOPTR_EXEC_MODEL execModel; // operator execution model [batch model|stream model]
struct SSubplan *plan;
struct SOperatorInfo* pRoot; struct SOperatorInfo* pRoot;
} SExecTaskInfo; } SExecTaskInfo;
......
...@@ -5210,7 +5210,6 @@ int32_t createExecTaskInfoImpl(SSubplan* pPlan, SExecTaskInfo** pTaskInfo, SRead ...@@ -5210,7 +5210,6 @@ int32_t createExecTaskInfoImpl(SSubplan* pPlan, SExecTaskInfo** pTaskInfo, SRead
goto _complete; goto _complete;
} }
(*pTaskInfo)->plan = pPlan;
return code; return code;
_complete: _complete:
......
...@@ -1657,11 +1657,6 @@ int32_t diffFunction(SqlFunctionCtx* pCtx) { ...@@ -1657,11 +1657,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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册