提交 2fc2fb16 编写于 作者: H hjxilinx

support the interpolation search

上级 f9bc8ff3
......@@ -191,6 +191,7 @@ typedef struct SQueryRuntimeEnv {
SPointInterpoSupporter* pInterpoSupporter;
bool hasTimeWindow;
bool interpoSearch;
} SQueryRuntimeEnv;
/* intermediate pos during multimeter query involves interval */
......
......@@ -3450,6 +3450,9 @@ static bool loadPrevDataPoint(SQueryRuntimeEnv* pRuntimeEnv, char** result) {
qTrace("QInfo:%p get prev data point, fileId:%d, slot:%d, pos:%d, pQuery->pos:%d", GET_QINFO_ADDR(pQuery),
pQuery->fileId, pQuery->slot, pQuery->pos, pQuery->pos);
// restore to the start position
loadRequiredBlockIntoMem(pRuntimeEnv, &pRuntimeEnv->startPos);
} else {
// moveToNextBlock make sure there is a available cache block, if exists
assert(vnodeIsDatablockLoaded(pRuntimeEnv, pMeterObj, -1, true) == DISK_BLOCK_NO_NEED_TO_LOAD);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册