Workaround for single connect-by cases
Offering: openGaussDev More detail: If no rownum or level qual is present, do not create connect-by-level filter. Signed-off-by:peijisheng peijisheng@huawei.com Match-id-400310ecf9513b47303f71f69da642d4b44d762b
This commit is contained in:
@ -383,7 +383,7 @@ bool CheckCycleExeception(StartWithOpState *node, TupleTableSlot *slot)
|
||||
|
||||
Assert (IsA(rustate, RecursiveUnionState));
|
||||
|
||||
if (IsConnectByLevelStartWithPlan(swplan)) {
|
||||
if (IsConnectByLevelStartWithPlan(swplan) || node->sw_keyAttnum == 0) {
|
||||
/* for connect by level case, we do not do cycle check */
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user