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 f33c6a23b8 Add debug log for query plan after decorrelation completion
f33c6a23b8 is described below
commit f33c6a23b818d822f6fef90cf95f8f3f61281448
Author: Xiong Duan <[email protected]>
AuthorDate: Fri Jan 23 09:11:51 2026 +0800
Add debug log for query plan after decorrelation completion
---
core/src/main/java/org/apache/calcite/sql2rel/RelDecorrelator.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/core/src/main/java/org/apache/calcite/sql2rel/RelDecorrelator.java
b/core/src/main/java/org/apache/calcite/sql2rel/RelDecorrelator.java
index 9813ef27d1..226159104a 100644
--- a/core/src/main/java/org/apache/calcite/sql2rel/RelDecorrelator.java
+++ b/core/src/main/java/org/apache/calcite/sql2rel/RelDecorrelator.java
@@ -275,6 +275,12 @@ public static RelNode decorrelateQuery(RelNode rootRel,
"Decorrelation produced a relation with a different type; before: "
+ rootRel.getRowType() + " after: " + newRootRel.getRowType());
+ if (SQL2REL_LOGGER.isDebugEnabled()) {
+ SQL2REL_LOGGER.debug(
+ RelOptUtil.dumpPlan("Plan after decorrelation", newRootRel,
+ SqlExplainFormat.TEXT, SqlExplainLevel.EXPPLAN_ATTRIBUTES));
+ }
+
// Re-propagate the hints.
newRootRel = RelOptUtil.propagateRelHints(newRootRel, true);
return newRootRel;