You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by mb...@apache.org on 2024/11/26 02:14:25 UTC

(calcite) branch fennel created (now ac6f716fde)

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

mbudiu pushed a change to branch fennel
in repository https://gitbox.apache.org/repos/asf/calcite.git


      at ac6f716fde Remove IN_FENNEL operator

This branch includes the following new commits:

     new ac6f716fde Remove IN_FENNEL operator

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(calcite) 01/01: Remove IN_FENNEL operator

Posted by mb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit ac6f716fdec6015b6ca2335ad341b6df6cd705b7
Author: Mihai Budiu <mb...@feldera.com>
AuthorDate: Fri Nov 22 18:57:21 2024 -0800

    Remove IN_FENNEL operator
    
    Signed-off-by: Mihai Budiu <mb...@feldera.com>
---
 core/src/main/java/org/apache/calcite/rex/RexProgram.java   |  7 -------
 .../org/apache/calcite/sql/fun/SqlStdOperatorTable.java     | 13 -------------
 2 files changed, 20 deletions(-)

diff --git a/core/src/main/java/org/apache/calcite/rex/RexProgram.java b/core/src/main/java/org/apache/calcite/rex/RexProgram.java
index 09858e4d26..ed11b1c8f7 100644
--- a/core/src/main/java/org/apache/calcite/rex/RexProgram.java
+++ b/core/src/main/java/org/apache/calcite/rex/RexProgram.java
@@ -30,7 +30,6 @@ import org.apache.calcite.rel.externalize.RelWriterImpl;
 import org.apache.calcite.rel.type.RelDataType;
 import org.apache.calcite.rel.type.RelDataTypeField;
 import org.apache.calcite.sql.SqlExplainLevel;
-import org.apache.calcite.sql.fun.SqlStdOperatorTable;
 import org.apache.calcite.sql.type.SqlTypeUtil;
 import org.apache.calcite.util.Litmus;
 import org.apache.calcite.util.Pair;
@@ -723,12 +722,6 @@ public class RexProgram {
     int index = project.index;
     while (true) {
       RexNode expr = exprs.get(index);
-      if (expr instanceof RexCall
-          && ((RexCall) expr).getOperator()
-          == SqlStdOperatorTable.IN_FENNEL) {
-        // drill through identity function
-        expr = ((RexCall) expr).getOperands().get(0);
-      }
       if (expr instanceof RexLocalRef) {
         index = ((RexLocalRef) expr).index;
       } else if (expr instanceof RexInputRef) {
diff --git a/core/src/main/java/org/apache/calcite/sql/fun/SqlStdOperatorTable.java b/core/src/main/java/org/apache/calcite/sql/fun/SqlStdOperatorTable.java
index 0258f75d0b..9ae6b0ab87 100644
--- a/core/src/main/java/org/apache/calcite/sql/fun/SqlStdOperatorTable.java
+++ b/core/src/main/java/org/apache/calcite/sql/fun/SqlStdOperatorTable.java
@@ -1995,19 +1995,6 @@ public class SqlStdOperatorTable extends ReflectiveSqlOperatorTable {
           OperandTypes.family(SqlTypeFamily.ANY, SqlTypeFamily.DATETIME,
               SqlTypeFamily.DATETIME));
 
-  /**
-   * Use of the <code>IN_FENNEL</code> operator forces the argument to be
-   * evaluated in Fennel. Otherwise acts as identity function.
-   */
-  public static final SqlFunction IN_FENNEL =
-      new SqlMonotonicUnaryFunction(
-          "$IN_FENNEL",
-          SqlKind.OTHER_FUNCTION,
-          ReturnTypes.ARG0,
-          null,
-          OperandTypes.ANY,
-          SqlFunctionCategory.SYSTEM);
-
   /**
    * The SQL <code>CAST</code> operator.
    *