This is an automated email from the ASF dual-hosted git repository.

xiong pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/calcite.git


The following commit(s) were added to refs/heads/main by this push:
     new 15e0a3b56f [CALCITE-7049] When performing garbage collection, 
HepPlanner should clear the metadata cache
15e0a3b56f is described below

commit 15e0a3b56f7e48858b19127120b84987040c43dd
Author: Xiong Duan <[email protected]>
AuthorDate: Fri Jun 6 13:48:05 2025 +0800

    [CALCITE-7049] When performing garbage collection, HepPlanner should clear 
the metadata cache
---
 core/src/main/java/org/apache/calcite/plan/hep/HepPlanner.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/core/src/main/java/org/apache/calcite/plan/hep/HepPlanner.java 
b/core/src/main/java/org/apache/calcite/plan/hep/HepPlanner.java
index 1349930ae8..3aaab70b1b 100644
--- a/core/src/main/java/org/apache/calcite/plan/hep/HepPlanner.java
+++ b/core/src/main/java/org/apache/calcite/plan/hep/HepPlanner.java
@@ -993,6 +993,9 @@ private void collectGarbage() {
         digestIter.remove();
       }
     }
+
+    // Clean up metadata cache too.
+    sweepSet.forEach(this::clearCache);
   }
 
   private void assertNoCycles() {

Reply via email to