fix(query)[TD-32059]. Enable HAVING clause to work with FILL clause

This commit is contained in:
Jinqing Kuang 2024-09-13 19:06:28 +08:00
parent e3842b8fdc
commit b9c1ab16e1
1 changed files with 4 additions and 0 deletions

View File

@ -1312,6 +1312,10 @@ static int32_t createFillLogicNode(SLogicPlanContext* pCxt, SSelectStmt* pSelect
code = createColumnByRewriteExpr(pFill->pWStartTs, &pFill->node.pTargets); code = createColumnByRewriteExpr(pFill->pWStartTs, &pFill->node.pTargets);
} }
if (TSDB_CODE_SUCCESS == code && NULL != pSelect->pHaving) {
code = nodesCloneNode(pSelect->pHaving, &pFill->node.pConditions);
}
if (TSDB_CODE_SUCCESS == code) { if (TSDB_CODE_SUCCESS == code) {
*pLogicNode = (SLogicNode*)pFill; *pLogicNode = (SLogicNode*)pFill;
} else { } else {