Skip to content

Commit

Permalink
branch-3.0: [bugfix](hive)Fix split assignment leak. releated to issue (
Browse files Browse the repository at this point in the history
#40683). #44845 (#45143)

Cherry-picked from #44845

Co-authored-by: sparrow <[email protected]>
  • Loading branch information
github-actions[bot] and biohazard4321 authored Dec 7, 2024
1 parent 7df5c10 commit 9add76b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ public String getNodeExplainString(String prefix, TExplainLevel detailLevel) {
output.append(prefix);
if (isBatchMode()) {
output.append("(approximate)");
splitAssignment.stop();
}
output.append("inputSplitNum=").append(selectedSplitNum).append(", totalFileSize=")
.append(totalFileSize).append(", scanRanges=").append(scanRangeLocations.size()).append("\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.apache.doris.nereids.trees.plans.PlanType;
import org.apache.doris.nereids.trees.plans.logical.LogicalPlan;
import org.apache.doris.nereids.trees.plans.visitor.PlanVisitor;
import org.apache.doris.planner.ScanNode;
import org.apache.doris.qe.ConnectContext;
import org.apache.doris.qe.StmtExecutor;

Expand Down Expand Up @@ -95,6 +96,9 @@ public void run(ConnectContext ctx, StmtExecutor executor) throws Exception {
} else {
executor.handleExplainStmt(planner.getExplainString(explainOptions), true);
}
for (ScanNode scanNode : planner.getScanNodes()) {
scanNode.stop();
}
}

@Override
Expand Down

0 comments on commit 9add76b

Please sign in to comment.