fix: keep limit for project with input ignore group
This commit is contained in:
parent
8e1039a07d
commit
9e0f83b800
|
@ -3186,7 +3186,11 @@ static bool pushDownLimitTo(SLogicNode* pNodeWithLimit, SLogicNode* pNodeLimitPu
|
||||||
}
|
}
|
||||||
case QUERY_NODE_LOGIC_PLAN_SCAN:
|
case QUERY_NODE_LOGIC_PLAN_SCAN:
|
||||||
if (nodeType(pNodeWithLimit) == QUERY_NODE_LOGIC_PLAN_PROJECT && pNodeWithLimit->pLimit) {
|
if (nodeType(pNodeWithLimit) == QUERY_NODE_LOGIC_PLAN_PROJECT && pNodeWithLimit->pLimit) {
|
||||||
swapLimit(pNodeWithLimit, pNodeLimitPushTo);
|
if (((SProjectLogicNode*)pNodeWithLimit)->inputIgnoreGroup) {
|
||||||
|
cloneLimit(pNodeWithLimit, pNodeLimitPushTo, CLONE_LIMIT);
|
||||||
|
} else {
|
||||||
|
swapLimit(pNodeWithLimit, pNodeLimitPushTo);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue