michaelbraun opened a new pull request, #5430: URL: https://github.com/apache/calcite/pull/5430
## Jira Link [CALCITE-7950](https://issues.apache.org/jira/browse/CALCITE-7950) ## Changes Proposed `HepRuleCall.transformTo` invalidates the cluster's `RelMetadataQuery`, so the `RelMdUtil.clearCache` calls that follow each transformation create a new, empty instance just to clear it. This adds `RelOptCluster.getMetadataQueryIfPresent()` and has `RelMdUtil.clearCache` return false when no instance exists. Behavior is unchanged; metadata reads still create the instance lazily. `HepPlannerTest.testClearCacheDoesNotCreateMetadataQuery` fails without the fix. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
