fix: distinct primary timestamp issue

This commit is contained in:
dapan1121 2023-06-02 11:42:25 +08:00
parent e70c433a59
commit 6dda2e94f4
1 changed files with 1 additions and 1 deletions

View File

@ -828,7 +828,7 @@ SNode* createSelectStmt(SAstCreateContext* pCxt, bool isDistinct, SNodeList* pPr
select->pProjectionList = pProjectionList;
select->pFromTable = pTable;
sprintf(select->stmtName, "%p", select);
select->timeLineResMode = TIME_LINE_GLOBAL;
select->timeLineResMode = select->isDistinct ? TIME_LINE_NONE : TIME_LINE_GLOBAL;
select->onlyHasKeepOrderFunc = true;
select->timeRange = TSWINDOW_INITIALIZER;
return (SNode*)select;