[case](Nereids) add leading tpc-h (#30405)

add tpc-h shape cases using leading hint
except:

single table without join q1 q6
not support feature include tables after subquery unnested q2 q16 q18 q20 q21 q22
This commit is contained in:
LiBinfeng
2024-03-08 08:26:34 +08:00
committed by yiguolei
parent 861461403f
commit eb280d374b
41 changed files with 1462 additions and 465 deletions

View File

@ -529,7 +529,7 @@ public class LeadingHint extends Hint {
return null;
}
logicalPlan = makeFilterPlanIfExist(getFilters(), logicalPlan);
stack.push(Pair.of(currentLevel, Pair.of(logicalPlan, index)));
stack.push(Pair.of(currentLevel, Pair.of(logicalPlan, index - 1)));
stackTopLevel = currentLevel;
}
}