Skip to content

Commit 8347cd5

Browse files
committed
The ST_DISTANCE function is not tech-preview
1 parent d144f83 commit 8347cd5

File tree

3 files changed

+1
-9
lines changed
  • docs/reference/query-languages/esql
  • x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/spatial

3 files changed

+1
-9
lines changed

docs/reference/query-languages/esql/_snippets/functions/layout/st_distance.md

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/query-languages/esql/kibana/definition/functions/st_distance.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/spatial/StDistance.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
import org.elasticsearch.xpack.esql.core.util.SpatialCoordinateTypes;
3131
import org.elasticsearch.xpack.esql.evaluator.mapper.EvaluatorMapper;
3232
import org.elasticsearch.xpack.esql.expression.function.Example;
33-
import org.elasticsearch.xpack.esql.expression.function.FunctionAppliesTo;
34-
import org.elasticsearch.xpack.esql.expression.function.FunctionAppliesToLifecycle;
3533
import org.elasticsearch.xpack.esql.expression.function.FunctionInfo;
3634
import org.elasticsearch.xpack.esql.expression.function.Param;
3735

@@ -226,8 +224,6 @@ public void distancePointDocValuesAndSource(DoubleBlock.Builder results, int pos
226224

227225
@FunctionInfo(
228226
returnType = "double",
229-
preview = true,
230-
appliesTo = { @FunctionAppliesTo(lifeCycle = FunctionAppliesToLifecycle.PREVIEW) },
231227
description = """
232228
Computes the distance between two points.
233229
For cartesian geometries, this is the pythagorean distance in the same units as the original coordinates.

0 commit comments

Comments
 (0)