From 51dc9fa425b19584c8724837879111624387fb6e Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Wed, 30 Jun 2021 19:34:48 +0800 Subject: [PATCH] [td-225]fix bug by regression test. --- src/tsdb/src/tsdbRead.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/tsdb/src/tsdbRead.c b/src/tsdb/src/tsdbRead.c index cb50eaf896..7d366ec814 100644 --- a/src/tsdb/src/tsdbRead.c +++ b/src/tsdb/src/tsdbRead.c @@ -280,16 +280,12 @@ static SArray* createCheckInfoFromTableGroup(STsdbQueryHandle* pQueryHandle, STa info.tableId.uid = info.pTableObj->tableId.uid; if (ASCENDING_TRAVERSE(pQueryHandle->order)) { - if (info.lastKey == INT64_MIN) { + if (info.lastKey == INT64_MIN || info.lastKey < pQueryHandle->window.skey) { info.lastKey = pQueryHandle->window.skey; } assert(info.lastKey >= pQueryHandle->window.skey && info.lastKey <= pQueryHandle->window.ekey); } else { - if (info.lastKey == INT64_MIN) { - info.lastKey = pQueryHandle->window.ekey; - } - assert(info.lastKey >= pQueryHandle->window.ekey && info.lastKey <= pQueryHandle->window.skey); } -- GitLab