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 <[email protected]> AuthorDate: Fri Nov 22 18:57:21 2024 -0800 Remove IN_FENNEL operator Signed-off-by: Mihai Budiu <[email protected]> --- 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. *
