From 2c91e122044de3673849e42d324f8c7a56d2e404 Mon Sep 17 00:00:00 2001 From: factosea <285808407@qq.com> Date: Tue, 3 Dec 2024 09:30:10 +0800 Subject: [PATCH] fix: where or const contition --- source/libs/parser/src/parTranslater.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index 7e5d9375ac..2e167d3053 100755 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -5623,6 +5623,9 @@ static int32_t getTimeRange(SNode** pPrimaryKeyCond, STimeWindow* pTimeRange, bo int32_t code = scalarCalculateConstants(*pPrimaryKeyCond, &pNew); if (TSDB_CODE_SUCCESS == code) { *pPrimaryKeyCond = pNew; + if(nodeType(pNew) == QUERY_NODE_VALUE) { + *pTimeRange = TSWINDOW_INITIALIZER; + } code = filterGetTimeRange(*pPrimaryKeyCond, pTimeRange, pIsStrict); } return code;