mihaibudiu commented on code in PR #4803:
URL: https://github.com/apache/calcite/pull/4803#discussion_r2955433875
##########
core/src/main/java/org/apache/calcite/plan/hep/HepPlanner.java:
##########
@@ -470,7 +541,13 @@ private void applyRules(HepProgram.State programState,
// To the extent possible, pick up where we left
// off; have to create a new iterator because old
// one was invalidated by transformation.
- iter = getGraphIterator(programState, newVertex);
+ if (!useHepVertexIterator) {
+ iter = getGraphIterator(programState, newVertex);
+ } else {
+ // Continue from newVertex and keep previous iterator status.
+ // It prevents revisiting the large plan's stable subgraph from
root.
Review Comment:
You should add this information to a comment, it seems useful
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]