fix comment

This commit is contained in:
Ganlin Zhao 2022-07-15 16:46:13 +08:00
parent 0377f865db
commit 7d5c496e10
1 changed files with 1 additions and 1 deletions

View File

@ -1166,7 +1166,7 @@ static int32_t translateRepeatScanFunc(STranslateContext* pCxt, SFunctionNode* p
return TSDB_CODE_SUCCESS;
}
if (isSelectStmt(pCxt->pCurrStmt)) {
//select percentile() is also valid
//select percentile() without from clause is also valid
if (NULL == ((SSelectStmt*)pCxt->pCurrStmt)->pFromTable) {
return TSDB_CODE_SUCCESS;
}