未验证 提交 fc5bf8dd 编写于 作者: M Minglei Jin 提交者: GitHub

Merge pull request #10138 from taosdata/fix/TD-13349-M

[TD-13349]<fix>(query): master->calc skip offset in tsdbRead.c ignore…
...@@ -1159,6 +1159,8 @@ static int32_t offsetSkipBlock(STsdbQueryHandle* q, SBlockInfo* pBlockInfo, int6 ...@@ -1159,6 +1159,8 @@ static int32_t offsetSkipBlock(STsdbQueryHandle* q, SBlockInfo* pBlockInfo, int6
q->frows += pBlock->numOfRows; // maybe have some row in memroy q->frows += pBlock->numOfRows; // maybe have some row in memroy
} }
} else { } else {
// already read rows belong to forbid skip rows -> frows
q->frows += pBlock->numOfRows;
// the remainder be put to pArray // the remainder be put to pArray
if(pArray == NULL) if(pArray == NULL)
pArray = taosArrayInit(1, sizeof(SRange)); pArray = taosArrayInit(1, sizeof(SRange));
...@@ -1225,6 +1227,8 @@ static int32_t offsetSkipBlock(STsdbQueryHandle* q, SBlockInfo* pBlockInfo, int6 ...@@ -1225,6 +1227,8 @@ static int32_t offsetSkipBlock(STsdbQueryHandle* q, SBlockInfo* pBlockInfo, int6
q->frows += pBlock->numOfRows; // maybe have some row in memroy q->frows += pBlock->numOfRows; // maybe have some row in memroy
} }
} else { } else {
// already read rows belong to forbid skip rows -> frows
q->frows += pBlock->numOfRows;
// the remainder be put to pArray // the remainder be put to pArray
if(pArray == NULL) if(pArray == NULL)
pArray = taosArrayInit(1, sizeof(SRange)); pArray = taosArrayInit(1, sizeof(SRange));
......
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
47,,script,./test.sh -f unique/dnode/reason.sim 47,,script,./test.sh -f unique/dnode/reason.sim
46,,script,./test.sh -f unique/mnode/mgmt22.sim 46,,script,./test.sh -f unique/mnode/mgmt22.sim
46,,pytest,python3 ./test.py -f stream/cqSupportBefore1970.py 46,,pytest,python3 ./test.py -f stream/cqSupportBefore1970.py
# 45,,script,./test.sh -f general/parser/col_arithmetic_operation.sim 45,,script,./test.sh -f general/parser/col_arithmetic_operation.sim
44,,script,./test.sh -f unique/big/tcp.sim 44,,script,./test.sh -f unique/big/tcp.sim
44,,script,./test.sh -f general/parser/topbot.sim 44,,script,./test.sh -f general/parser/topbot.sim
44,,pytest,python3 ./test.py -f stream/metric_n.py 44,,pytest,python3 ./test.py -f stream/metric_n.py
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册