fix: code refactor
This commit is contained in:
parent
5b866edae7
commit
0ea8de64df
|
@ -2594,15 +2594,15 @@ static bool tbCntScanOptIsEligibleConds(STbCntScanOptInfo* pInfo, SNode* pCondit
|
||||||
if (NULL == pConditions) {
|
if (NULL == pConditions) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (LIST_LENGTH(pInfo->pAgg->pGroupKeys) != 0) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (QUERY_NODE_LOGIC_CONDITION == nodeType(pConditions)) {
|
if (QUERY_NODE_LOGIC_CONDITION == nodeType(pConditions)) {
|
||||||
return tbCntScanOptIsEligibleLogicCond(pInfo, (SLogicConditionNode*)pConditions) &&
|
return tbCntScanOptIsEligibleLogicCond(pInfo, (SLogicConditionNode*)pConditions);
|
||||||
LIST_LENGTH(pInfo->pAgg->pGroupKeys) == 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (QUERY_NODE_OPERATOR == nodeType(pConditions)) {
|
if (QUERY_NODE_OPERATOR == nodeType(pConditions)) {
|
||||||
return tbCntScanOptIsEligibleOpCond((SOperatorNode*)pConditions) &&
|
return tbCntScanOptIsEligibleOpCond((SOperatorNode*)pConditions);
|
||||||
LIST_LENGTH(pInfo->pAgg->pGroupKeys) == 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue