Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove IN_FENNEL operator #4065

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions core/src/main/java/org/apache/calcite/rex/RexProgram.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
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;
Expand Down Expand Up @@ -723,12 +722,6 @@ public int getSourceField(int outputOrdinal) {
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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down