Skip to content

Commit

Permalink
remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
not-napoleon committed Dec 12, 2024
1 parent 9503afc commit d72d865
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import org.elasticsearch.xpack.esql.core.expression.FieldAttribute;
import org.elasticsearch.xpack.esql.core.expression.function.scalar.ScalarFunction;
import org.elasticsearch.xpack.esql.core.querydsl.query.Query;
import org.elasticsearch.xpack.esql.core.type.DataType;

import java.util.function.Supplier;

Expand All @@ -34,5 +33,4 @@ default Query wrapFunctionQuery(ScalarFunction sf, Expression field, Supplier<Qu

String nameOf(Expression e);

Object convert(Object value, DataType dataType);
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
import org.elasticsearch.xpack.esql.core.expression.predicate.nulls.IsNull;
import org.elasticsearch.xpack.esql.core.planner.TranslatorHandler;
import org.elasticsearch.xpack.esql.core.querydsl.query.Query;
import org.elasticsearch.xpack.esql.core.type.DataType;
import org.elasticsearch.xpack.esql.querydsl.query.SingleValueQuery;
import org.elasticsearch.xpack.esql.type.EsqlDataTypeConverter;

import java.util.function.Supplier;

Expand All @@ -30,11 +28,6 @@ public Query asQuery(Expression e) {
return EsqlExpressionTranslators.toQuery(e, this);
}

@Override
public Object convert(Object value, DataType dataType) {
return EsqlDataTypeConverter.convert(value, dataType);
}

@Override
public Query wrapFunctionQuery(ScalarFunction sf, Expression field, Supplier<Query> querySupplier) {
if (field instanceof FieldAttribute fa) {
Expand Down

0 comments on commit d72d865

Please sign in to comment.