This is an automated email from the ASF dual-hosted git repository.
mbudiu 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 8c3ba0bdff Remove IN_FENNEL operator
8c3ba0bdff is described below
commit 8c3ba0bdffe412e1bede026e1e6c7ee942d796ee
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 797e224df2..9e0cfa92a2 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
@@ -2074,19 +2074,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.
*