fix: where or const contition

This commit is contained in:
factosea 2024-12-03 09:30:10 +08:00
parent e628b68d4f
commit 2c91e12204
1 changed files with 3 additions and 0 deletions

View File

@ -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;