未验证 提交 8c033a51 编写于 作者: S Shengliang Guan 提交者: GitHub

Merge pull request #2090 from taosdata/hotfix/lihui

[TD-492]
...@@ -2801,14 +2801,16 @@ static int32_t rowwiseApplyAllFunctions(SQueryRuntimeEnv *pRuntimeEnv, int32_t * ...@@ -2801,14 +2801,16 @@ static int32_t rowwiseApplyAllFunctions(SQueryRuntimeEnv *pRuntimeEnv, int32_t *
break; break;
} }
} }
// save the last accessed row of current data block for interpolation if (lastIndex >= 0) {
int32_t index = GET_COL_DATA_POS(pQuery, lastIndex, step); // save the last accessed row of current data block for interpolation
for(int32_t i = 0; i < pQuery->numOfCols; ++i) { int32_t index = GET_COL_DATA_POS(pQuery, lastIndex, step);
SColumnInfo* pColInfo = &pQuery->colList[i].data; for(int32_t i = 0; i < pQuery->numOfCols; ++i) {
int32_t s = pColInfo->bytes * index; SColumnInfo* pColInfo = &pQuery->colList[i].data;
int32_t s = pColInfo->bytes * index;
memcpy(pRuntimeEnv->lastRowInBlock[i], pRuntimeEnv->colDataBuffer[i]->data + s, pColInfo->bytes); memcpy(pRuntimeEnv->lastRowInBlock[i], pRuntimeEnv->colDataBuffer[i]->data + s, pColInfo->bytes);
}
} }
free(sasArray); free(sasArray);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册