Skip to content

Commit

Permalink
remove is_infinite
Browse files Browse the repository at this point in the history
  • Loading branch information
not-napoleon committed Jan 8, 2024
1 parent 849e399 commit 49371a5
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 285 deletions.
2 changes: 0 additions & 2 deletions docs/reference/esql/esql-functions.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ these functions:
* <<esql-ends_with>>
* <<esql-floor>>
* <<esql-greatest>>
* <<esql-is_infinite>>
* <<esql-least>>
* <<esql-left>>
* <<esql-length>>
Expand Down Expand Up @@ -92,7 +91,6 @@ include::functions/e.asciidoc[]
include::functions/ends_with.asciidoc[]
include::functions/floor.asciidoc[]
include::functions/greatest.asciidoc[]
include::functions/is_infinite.asciidoc[]
include::functions/least.asciidoc[]
include::functions/left.asciidoc[]
include::functions/length.asciidoc[]
Expand Down
29 changes: 0 additions & 29 deletions docs/reference/esql/functions/is_infinite.asciidoc

This file was deleted.

2 changes: 0 additions & 2 deletions docs/reference/esql/functions/operators.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ Boolean operators for comparing against one or multiple expressions.
* <<esql-cidr_match>>
* <<esql-ends_with>>
* <<esql-in-operator>>
* <<esql-is_infinite>>
* <<esql-like-operator>>
* <<esql-rlike-operator>>
* <<esql-starts_with>>
Expand All @@ -28,7 +27,6 @@ include::predicates.asciidoc[]
include::cidr_match.asciidoc[]
include::ends_with.asciidoc[]
include::in.asciidoc[]
include::is_infinite.asciidoc[]
include::like.asciidoc[]
include::rlike.asciidoc[]
include::starts_with.asciidoc[]
1 change: 0 additions & 1 deletion docs/reference/esql/functions/signature/is_infinite.svg

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -210,20 +210,6 @@ salary:integer | s:double
73851 | 1330201
;

isInfiniteFalse
row d = 1.0 | eval s = is_infinite(d);

d:double | s:boolean
1.0 | false
;

isInfiniteTrue
row d = 1.0/0 | eval s = is_infinite(d);

d:double | s:boolean
Infinity | true
;

log10
// tag::log10[]
ROW d = 1000.0
Expand Down Expand Up @@ -999,13 +985,6 @@ d:double | s:double
-0.0 | -0.0
;

sqrtOfInfinite
row d = 1/0.0 | eval s = is_infinite(sqrt(d));

d:double | s:boolean
Infinity | true
;

least
// tag::least[]
ROW a = 10, b = 20
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ e |? e()
ends_with |? ends_with(arg1:?, arg2:?) |[arg1, arg2] |[?, ?] |["", ""] |? | "" | [false, false] | false
floor |"? floor(n:integer|long|double|unsigned_long)" |n |"integer|long|double|unsigned_long" | "" |? | "" | false | false
greatest |"? greatest(first:integer|long|double|boolean|keyword|text|ip|version, rest...:integer|long|double|boolean|keyword|text|ip|version)" |[first, rest] |["integer|long|double|boolean|keyword|text|ip|version", "integer|long|double|boolean|keyword|text|ip|version"] |["", ""] |? | "" | [false, false] | true
is_infinite |boolean is_infinite(n:double) |n |double | "A floating-point value" |boolean | "Returns true if the specified floating-point value is infinitely large in magnitude." | false | false
least |"? least(first:integer|long|double|boolean|keyword|text|ip|version, rest...:integer|long|double|boolean|keyword|text|ip|version)" |[first, rest] |["integer|long|double|boolean|keyword|text|ip|version", "integer|long|double|boolean|keyword|text|ip|version"] |["", ""] |? | "" | [false, false] | true
left |"? left(string:keyword, length:integer)" |[string, length] |["keyword", "integer"] |["", ""] |? | "" | [false, false] | false
length |? length(arg1:?) |arg1 |? | "" |? | "" | false | false
Expand Down Expand Up @@ -123,7 +122,6 @@ synopsis:keyword
? ends_with(arg1:?, arg2:?)
"? floor(n:integer|long|double|unsigned_long)"
"? greatest(first:integer|long|double|boolean|keyword|text|ip|version, rest...:integer|long|double|boolean|keyword|text|ip|version)"
boolean is_infinite(n:double)
"? least(first:integer|long|double|boolean|keyword|text|ip|version, rest...:integer|long|double|boolean|keyword|text|ip|version)"
? left(string:keyword, length:integer)
? length(arg1:?)
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
import org.elasticsearch.xpack.esql.expression.function.scalar.math.Cosh;
import org.elasticsearch.xpack.esql.expression.function.scalar.math.E;
import org.elasticsearch.xpack.esql.expression.function.scalar.math.Floor;
import org.elasticsearch.xpack.esql.expression.function.scalar.math.IsInfinite;
import org.elasticsearch.xpack.esql.expression.function.scalar.math.Log10;
import org.elasticsearch.xpack.esql.expression.function.scalar.math.Pi;
import org.elasticsearch.xpack.esql.expression.function.scalar.math.Pow;
Expand Down Expand Up @@ -129,7 +128,6 @@ private FunctionDefinition[][] functions() {
def(E.class, E::new, "e"),
def(Floor.class, Floor::new, "floor"),
def(Greatest.class, Greatest::new, "greatest"),
def(IsInfinite.class, IsInfinite::new, "is_infinite"),
def(Log10.class, Log10::new, "log10"),
def(Least.class, Least::new, "least"),
def(Pi.class, Pi::new, "pi"),
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
import org.elasticsearch.xpack.esql.expression.function.scalar.math.Cosh;
import org.elasticsearch.xpack.esql.expression.function.scalar.math.E;
import org.elasticsearch.xpack.esql.expression.function.scalar.math.Floor;
import org.elasticsearch.xpack.esql.expression.function.scalar.math.IsInfinite;
import org.elasticsearch.xpack.esql.expression.function.scalar.math.Log10;
import org.elasticsearch.xpack.esql.expression.function.scalar.math.Pi;
import org.elasticsearch.xpack.esql.expression.function.scalar.math.Pow;
Expand Down Expand Up @@ -315,7 +314,6 @@ public static List<PlanNameRegistry.Entry> namedTypeEntries() {
of(ESQL_UNARY_SCLR_CLS, Cos.class, PlanNamedTypes::writeESQLUnaryScalar, PlanNamedTypes::readESQLUnaryScalar),
of(ESQL_UNARY_SCLR_CLS, Cosh.class, PlanNamedTypes::writeESQLUnaryScalar, PlanNamedTypes::readESQLUnaryScalar),
of(ESQL_UNARY_SCLR_CLS, Floor.class, PlanNamedTypes::writeESQLUnaryScalar, PlanNamedTypes::readESQLUnaryScalar),
of(ESQL_UNARY_SCLR_CLS, IsInfinite.class, PlanNamedTypes::writeESQLUnaryScalar, PlanNamedTypes::readESQLUnaryScalar),
of(ESQL_UNARY_SCLR_CLS, Length.class, PlanNamedTypes::writeESQLUnaryScalar, PlanNamedTypes::readESQLUnaryScalar),
of(ESQL_UNARY_SCLR_CLS, Log10.class, PlanNamedTypes::writeESQLUnaryScalar, PlanNamedTypes::readESQLUnaryScalar),
of(ESQL_UNARY_SCLR_CLS, LTrim.class, PlanNamedTypes::writeESQLUnaryScalar, PlanNamedTypes::readESQLUnaryScalar),
Expand Down Expand Up @@ -1148,7 +1146,6 @@ static void writeBinaryLogic(PlanStreamOutput out, BinaryLogic binaryLogic) thro
entry(name(Cos.class), Cos::new),
entry(name(Cosh.class), Cosh::new),
entry(name(Floor.class), Floor::new),
entry(name(IsInfinite.class), IsInfinite::new),
entry(name(Length.class), Length::new),
entry(name(Log10.class), Log10::new),
entry(name(LTrim.class), LTrim::new),
Expand Down

This file was deleted.

0 comments on commit 49371a5

Please sign in to comment.