Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
12 changes: 12 additions & 0 deletions docs/changelog/129839.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
pr: 129839
summary: Hide spatial grid functions behind SNAPSHOT
area: ES|QL
type: breaking
issues: []
breaking:
title: Hide spatial grid functions behind SNAPSHOT
area: ES|QL
details: Please describe the details of this change for the release notes. You can
use asciidoc.
impact: Please describe the impact of this change to users
notable: false
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,3 @@
* [preview] [`ST_XMIN`](../../functions-operators/spatial-functions.md#esql-st_xmin)
* [preview] [`ST_YMAX`](../../functions-operators/spatial-functions.md#esql-st_ymax)
* [preview] [`ST_YMIN`](../../functions-operators/spatial-functions.md#esql-st_ymin)
* [preview] [`ST_GEOTILE`](../../functions-operators/spatial-functions.md#esql-st_geotile)
* [preview] [`ST_GEOTILE_TO_STRING`](../../functions-operators/spatial-functions.md#esql-st_geotile_to_string)
* [preview] [`ST_GEOTILE_TO_LONG`](../../functions-operators/spatial-functions.md#esql-st_geotile_to_long)
* [preview] [`ST_GEOHEX`](../../functions-operators/spatial-functions.md#esql-st_geohex)
* [preview] [`ST_GEOHEX_TO_STRING`](../../functions-operators/spatial-functions.md#esql-st_geohex_to_string)
* [preview] [`ST_GEOHEX_TO_LONG`](../../functions-operators/spatial-functions.md#esql-st_geohex_to_long)
* [preview] [`ST_GEOHASH`](../../functions-operators/spatial-functions.md#esql-st_geohash)
* [preview] [`ST_GEOHASH_TO_STRING`](../../functions-operators/spatial-functions.md#esql-st_geohash_to_string)
* [preview] [`ST_GEOHASH_TO_LONG`](../../functions-operators/spatial-functions.md#esql-st_geohash_to_long)
Original file line number Diff line number Diff line change
Expand Up @@ -48,29 +48,3 @@ mapped_pages:
:::{include} ../_snippets/functions/layout/st_ymin.md
:::

:::{include} ../_snippets/functions/layout/st_geotile.md
:::

:::{include} ../_snippets/functions/layout/st_geotile_to_string.md
:::

:::{include} ../_snippets/functions/layout/st_geotile_to_long.md
:::

:::{include} ../_snippets/functions/layout/st_geohex.md
:::

:::{include} ../_snippets/functions/layout/st_geohex_to_string.md
:::

:::{include} ../_snippets/functions/layout/st_geohex_to_long.md
:::

:::{include} ../_snippets/functions/layout/st_geohash.md
:::

:::{include} ../_snippets/functions/layout/st_geohash_to_string.md
:::

:::{include} ../_snippets/functions/layout/st_geohash_to_long.md
:::
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ public enum Cap {
/**
* Support ST_GEOHASH, ST_GEOTILE and ST_GEOHEX functions
*/
SPATIAL_GRID,
SPATIAL_GRID(Build.current().isSnapshot()),

/**
* Fix to GROK and DISSECT that allows extracting attributes with the same name as the input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,16 +401,7 @@ private static FunctionDefinition[][] functions() {
def(StYMax.class, StYMax::new, "st_ymax"),
def(StYMin.class, StYMin::new, "st_ymin"),
def(StX.class, StX::new, "st_x"),
def(StY.class, StY::new, "st_y"),
def(StGeohash.class, StGeohash::new, "st_geohash"),
def(StGeohashToLong.class, StGeohashToLong::new, "st_geohash_to_long"),
def(StGeohashToString.class, StGeohashToString::new, "st_geohash_to_string"),
def(StGeotile.class, StGeotile::new, "st_geotile"),
def(StGeotileToLong.class, StGeotileToLong::new, "st_geotile_to_long"),
def(StGeotileToString.class, StGeotileToString::new, "st_geotile_to_string"),
def(StGeohex.class, StGeohex::new, "st_geohex"),
def(StGeohexToLong.class, StGeohexToLong::new, "st_geohex_to_long"),
def(StGeohexToString.class, StGeohexToString::new, "st_geohex_to_string") },
def(StY.class, StY::new, "st_y") },
// conditional
new FunctionDefinition[] { def(Case.class, Case::new, "case") },
// null
Expand Down Expand Up @@ -487,7 +478,16 @@ private static FunctionDefinition[][] snapshotFunctions() {
def(LastOverTime.class, LastOverTime::withUnresolvedTimestamp, "last_over_time"),
def(FirstOverTime.class, FirstOverTime::withUnresolvedTimestamp, "first_over_time"),
def(Term.class, bi(Term::new), "term"),
def(Knn.class, tri(Knn::new), "knn") } };
def(Knn.class, tri(Knn::new), "knn"),
def(StGeohash.class, StGeohash::new, "st_geohash"),
def(StGeohashToLong.class, StGeohashToLong::new, "st_geohash_to_long"),
def(StGeohashToString.class, StGeohashToString::new, "st_geohash_to_string"),
def(StGeotile.class, StGeotile::new, "st_geotile"),
def(StGeotileToLong.class, StGeotileToLong::new, "st_geotile_to_long"),
def(StGeotileToString.class, StGeotileToString::new, "st_geotile_to_string"),
def(StGeohex.class, StGeohex::new, "st_geohex"),
def(StGeohexToLong.class, StGeohexToLong::new, "st_geohex_to_long"),
def(StGeohexToString.class, StGeohexToString::new, "st_geohex_to_string") } };
}

public EsqlFunctionRegistry snapshotRegistry() {
Expand Down
Loading