You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by ru...@apache.org on 2024/07/23 12:38:07 UTC

(calcite) branch main updated: [CALCITE-6495] Allow ProjectSetOpTransposeRule to work with any subclass of Project

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

rubenql 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 a1b5fdf23e [CALCITE-6495] Allow ProjectSetOpTransposeRule to work with any subclass of Project
a1b5fdf23e is described below

commit a1b5fdf23eac55a1b77b3e6d229a35f9f23d1259
Author: Ruben Quesada Lopez <ru...@gmail.com>
AuthorDate: Tue Jul 23 10:51:55 2024 +0100

    [CALCITE-6495] Allow ProjectSetOpTransposeRule to work with any subclass of Project
---
 .../org/apache/calcite/rel/rules/ProjectSetOpTransposeRule.java     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/core/src/main/java/org/apache/calcite/rel/rules/ProjectSetOpTransposeRule.java b/core/src/main/java/org/apache/calcite/rel/rules/ProjectSetOpTransposeRule.java
index b3502ac36b..9193a7a9db 100644
--- a/core/src/main/java/org/apache/calcite/rel/rules/ProjectSetOpTransposeRule.java
+++ b/core/src/main/java/org/apache/calcite/rel/rules/ProjectSetOpTransposeRule.java
@@ -33,12 +33,12 @@ import java.util.List;
 
 /**
  * Planner rule that pushes
- * a {@link org.apache.calcite.rel.logical.LogicalProject}
+ * a {@link org.apache.calcite.rel.core.Project}
  * past a {@link org.apache.calcite.rel.core.SetOp}.
  *
  * <p>The children of the {@code SetOp} will project
  * only the {@link RexInputRef}s referenced in the original
- * {@code LogicalProject}.
+ * {@code Project}.
  *
  * @see CoreRules#PROJECT_SET_OP_TRANSPOSE
  */
@@ -64,7 +64,7 @@ public class ProjectSetOpTransposeRule
   //~ Methods ----------------------------------------------------------------
 
   @Override public void onMatch(RelOptRuleCall call) {
-    final LogicalProject origProject = call.rel(0);
+    final Project origProject = call.rel(0);
     final SetOp setOp = call.rel(1);
 
     // cannot push project past a distinct