fix(query)[TD-32059]. Enable HAVING clause to work with FILL clause
This commit is contained in:
parent
e3842b8fdc
commit
b9c1ab16e1
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue