forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into auto-casting-functions
- Loading branch information
Showing
183 changed files
with
6,364 additions
and
3,343 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 106503 | ||
summary: "Support ST_CONTAINS and ST_WITHIN" | ||
area: "ES|QL" | ||
type: enhancement | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 106934 | ||
summary: Adjust array resizing in block builder | ||
area: ES|QL | ||
type: enhancement | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
docs/reference/esql/functions/description/st_contains.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it. | ||
|
||
*Description* | ||
|
||
Returns whether the first geometry contains the second geometry. | ||
|
||
NOTE: The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it. | ||
|
||
*Description* | ||
|
||
Returns whether the first geometry is within the second geometry. | ||
|
||
NOTE: The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_*` and `cartesian_*` parameters. |
13 changes: 13 additions & 0 deletions
13
docs/reference/esql/functions/examples/st_contains.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it. | ||
|
||
*Example* | ||
|
||
[source.merge.styled,esql] | ||
---- | ||
include::{esql-specs}/spatial_shapes.csv-spec[tag=st_contains-airport_city_boundaries] | ||
---- | ||
[%header.monospaced.styled,format=dsv,separator=|] | ||
|=== | ||
include::{esql-specs}/spatial_shapes.csv-spec[tag=st_contains-airport_city_boundaries-result] | ||
|=== | ||
|
13 changes: 13 additions & 0 deletions
13
docs/reference/esql/functions/examples/st_intersects.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it. | ||
|
||
*Example* | ||
|
||
[source.merge.styled,esql] | ||
---- | ||
include::{esql-specs}/spatial.csv-spec[tag=st_intersects-airports] | ||
---- | ||
[%header.monospaced.styled,format=dsv,separator=|] | ||
|=== | ||
include::{esql-specs}/spatial.csv-spec[tag=st_intersects-airports-result] | ||
|=== | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it. | ||
|
||
*Example* | ||
|
||
[source.merge.styled,esql] | ||
---- | ||
include::{esql-specs}/spatial_shapes.csv-spec[tag=st_within-airport_city_boundaries] | ||
---- | ||
[%header.monospaced.styled,format=dsv,separator=|] | ||
|=== | ||
include::{esql-specs}/spatial_shapes.csv-spec[tag=st_within-airport_city_boundaries-result] | ||
|=== | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it. | ||
|
||
[discrete] | ||
[[esql-st_contains]] | ||
=== `ST_CONTAINS` | ||
|
||
*Syntax* | ||
|
||
[.text-center] | ||
image::esql/functions/signature/st_contains.svg[Embedded,opts=inline] | ||
|
||
include::../parameters/st_contains.asciidoc[] | ||
include::../description/st_contains.asciidoc[] | ||
include::../types/st_contains.asciidoc[] | ||
include::../examples/st_contains.asciidoc[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it. | ||
|
||
[discrete] | ||
[[esql-st_within]] | ||
=== `ST_WITHIN` | ||
|
||
*Syntax* | ||
|
||
[.text-center] | ||
image::esql/functions/signature/st_within.svg[Embedded,opts=inline] | ||
|
||
include::../parameters/st_within.asciidoc[] | ||
include::../description/st_within.asciidoc[] | ||
include::../types/st_within.asciidoc[] | ||
include::../examples/st_within.asciidoc[] |
7 changes: 7 additions & 0 deletions
7
docs/reference/esql/functions/parameters/st_contains.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
*Parameters* | ||
|
||
`geomA`:: | ||
Geometry column name or variable of geometry type | ||
|
||
`geomB`:: | ||
Geometry column name or variable of geometry type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
*Parameters* | ||
|
||
`geomA`:: | ||
Geometry column name or variable of geometry type | ||
|
||
`geomB`:: | ||
Geometry column name or variable of geometry type |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[discrete] | ||
[[esql-st_contains]] | ||
=== `ST_CONTAINS` | ||
|
||
experimental::[] | ||
|
||
*Syntax* | ||
|
||
[.text-center] | ||
image::esql/functions/signature/st_contains.svg[Embedded,opts=inline] | ||
|
||
*Parameters* | ||
|
||
`geomA`:: | ||
Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. | ||
|
||
`geomB`:: | ||
Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. | ||
The second parameter must also have the same coordinate system as the first. | ||
This means it is not possible to combine `geo_*` and `cartesian_*` parameters. | ||
|
||
include::description/st_contains.asciidoc[] | ||
This is the inverse of the `<<esql-st_within,ST_WITHIN>>` function. | ||
|
||
include::types/st_contains.asciidoc[] | ||
include::examples/st_contains.asciidoc[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[discrete] | ||
[[esql-st_within]] | ||
=== `ST_WITHIN` | ||
|
||
experimental::[] | ||
|
||
*Syntax* | ||
|
||
[.text-center] | ||
image::esql/functions/signature/st_within.svg[Embedded,opts=inline] | ||
|
||
*Parameters* | ||
|
||
`geomA`:: | ||
Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. | ||
|
||
`geomB`:: | ||
Expression of type `geo_point`, `cartesian_point`, `geo_shape` or `cartesian_shape`. If `null`, the function returns `null`. | ||
The second parameter must also have the same coordinate system as the first. | ||
This means it is not possible to combine `geo_*` and `cartesian_*` parameters. | ||
|
||
include::description/st_within.asciidoc[] | ||
This is the inverse of the `<<esql-st_contains,ST_CONTAINS>>` function. | ||
|
||
include::types/st_within.asciidoc[] | ||
include::examples/st_within.asciidoc[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
[[esql-st_x]] | ||
=== `ST_X` | ||
|
||
experimental::[] | ||
|
||
*Syntax* | ||
|
||
[.text-center] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
[[esql-st_y]] | ||
=== `ST_Y` | ||
|
||
experimental::[] | ||
|
||
*Syntax* | ||
|
||
[.text-center] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it. | ||
|
||
*Supported types* | ||
|
||
[%header.monospaced.styled,format=dsv,separator=|] | ||
|=== | ||
geomA | geomB | result | ||
cartesian_point | cartesian_point | boolean | ||
cartesian_point | cartesian_shape | boolean | ||
cartesian_shape | cartesian_point | boolean | ||
cartesian_shape | cartesian_shape | boolean | ||
geo_point | geo_point | boolean | ||
geo_point | geo_shape | boolean | ||
geo_shape | geo_point | boolean | ||
geo_shape | geo_shape | boolean | ||
|=== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it. | ||
|
||
*Supported types* | ||
|
||
[%header.monospaced.styled,format=dsv,separator=|] | ||
|=== | ||
geomA | geomB | result | ||
cartesian_point | cartesian_point | boolean | ||
cartesian_point | cartesian_shape | boolean | ||
cartesian_shape | cartesian_point | boolean | ||
cartesian_shape | cartesian_shape | boolean | ||
geo_point | geo_point | boolean | ||
geo_point | geo_shape | boolean | ||
geo_shape | geo_point | boolean | ||
geo_shape | geo_shape | boolean | ||
|=== |
Oops, something went wrong.