Skip to content

ESQL: Hide spatial grid functions behind SNAPSHOT #129839

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 23, 2025

Conversation

alex-spies
Copy link
Contributor

Only technically breaking on Serverless, where there should be no users of this feature as of yet.

#125143 added 9 spatial grid functions and released them into Serverless.
We think this is not the best long-term approach and the functions in #129581 are likely better.

Unfortunately, the latter PR has a wide blast radius and will require some time; so this PR only removes the spatial grid functions added in #125143 from release builds so they don't get released into 8.19/9.1.

@alex-spies alex-spies requested a review from craigtaverner June 23, 2025 09:26
@alex-spies alex-spies added >breaking auto-backport Automatically create backport pull requests when merged :Analytics/ES|QL AKA ESQL v8.19.0 v9.1.0 labels Jun 23, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Jun 23, 2025
@elasticsearchmachine
Copy link
Collaborator

Hi @alex-spies, I've created a changelog YAML for you. Note that since this PR is labelled >breaking, you need to update the changelog YAML to fill out the extended information sections.

@alex-spies
Copy link
Contributor Author

alex-spies commented Jun 23, 2025

  • This doesn't yet touch the documentation for ST_GEOHASH, ST_GEOTILE and ST_GEOHEX - that needs to be pulled as well.

Copy link
Contributor

github-actions bot commented Jun 23, 2025

🔍 Preview links for changed docs:

🔔 The preview site may take up to 3 minutes to finish building. These links will become live once it completes.

@alex-spies alex-spies requested a review from leemthompo June 23, 2025 09:38
@alex-spies
Copy link
Contributor Author

@leemthompo , do you know if we need to do something special about the Kibana docs? We still emit the auto-generated docs for the SNAPSHOT-hidden functions, but this seems to be consistent with other SNAPSHOT-only functions like KNN?

@leemthompo
Copy link
Contributor

leemthompo commented Jun 23, 2025

I'm not sure how Kibana ignores snapshot stuff from inline docs, @stratoula will know

if they've been already generated and are now live on serverless, possibly will need to manually remove them

@craigtaverner
Copy link
Contributor

I'm not sure how Kibana ignores snapshot stuff from inline docs, @stratoula will know

if they've been already generated and are now live on serverless, possibly will need to manually remove them

Kibana regenerates their content weekly from what we publish. So if we make a change in this PR, it will take up to a week to get into Kibana. They can run it manually earlier if necessary.

@craigtaverner
Copy link
Contributor

I see the kibana files are not updated:

st_geohash.json:  "snapshot_only" : false

I can push a change for that.

@stratoula
Copy link

stratoula commented Jun 23, 2025

Craig is right, this runs every Monday (EMEA morning) but if you want me to run it earlier please let me know 👍

You have to update the kibana docs and definitions though otherwise the script won't get the changes

Copy link
Contributor

@leemthompo leemthompo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs changes LGTM

@alex-spies alex-spies merged commit efb1397 into elastic:main Jun 23, 2025
32 checks passed
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
8.19 Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 129839

@alex-spies
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.19

Questions ?

Please refer to the Backport tool documentation

alex-spies added a commit to alex-spies/elasticsearch that referenced this pull request Jun 23, 2025
elastic#125143 added 9 spatial grid functions and released them into Serverless. We think this is not the best long-term approach and the functions in elastic#129581 are likely better.

As a first step, rmove the spatial grid functions added in elastic#125143 from release builds so they don't get released into 8.19/9.1.

---------

Co-authored-by: Craig Taverner <[email protected]>
(cherry picked from commit efb1397)

# Conflicts:
#	docs/reference/query-languages/esql/_snippets/lists/spatial-functions.md
#	docs/reference/query-languages/esql/functions-operators/spatial-functions.md
alex-spies added a commit that referenced this pull request Jun 23, 2025
#125143 added 9 spatial grid functions and released them into Serverless. We think this is not the best long-term approach and the functions in #129581 are likely better.

As a first step, remove the spatial grid functions added in #125143 from release builds so they don't get released into 8.19/9.1.

---------

Co-authored-by: Craig Taverner <[email protected]>
(cherry picked from commit efb1397)

# Conflicts:
#	docs/reference/query-languages/esql/_snippets/lists/spatial-functions.md
#	docs/reference/query-languages/esql/functions-operators/spatial-functions.md
leemthompo added a commit that referenced this pull request Jun 23, 2025
…o` metadata (#128576)

- Add PREVIEW annotations to all preview functions
- Update docs generation logic to use annotations instead of preview boolean
* Changed stack: ga 9.1 to stack: coming in multiple places
  - Match.java: Updated the options parameter description
  - MultiMatch.java: Updated the options parameter description
  - ToLower.java: Reformatted parameter description and updated version annotation
  - ToUpper.java: Removed the appliesTo annotation entirely and reformatted parameter description

- updated applies_to annotations to specify both preview 9.0.0 and ga 9.1.0 lifecycle stages
- added version-specific documentation examples with applies_to markers for ga 9.1.0 features
- enhanced to_lower and to_upper functions to indicate support for multi-valued expressions in ga 9.1.0
- added version guards around function parameters and descriptions using applies_to syntax
- updated function parameter descriptions to indicate ga 9.1.0 availability for named parameters
- use detailedDescription + and fix match_phrase applies_to syntax
- strip inline applies_to from kibana docs
- update roundto, matchphrase lifecycles
-  fix match named params info
- various spatial functions are preview
- unsigned long is preview
- update qstr
- Update TO_LOWER/TO_UPPER parameter descriptions for clarity
- hide spatial functions per #129839
- added `stack: ga 9.1.0` blocks to match_phrase.md and qstr.md examples
- simplified term.md version from `preview 9.0.0` to just `preview`
- added `applies_to = "stack: ga 9.1.0"` to matchphrase and querystring java annotations
- removed version `9.0.0` from term function annotation
- deleted unused `makeCallout()` and `appendLifeCycleAndVersion()` methods


Co-authored-by: elasticsearchmachine <[email protected]>
Co-authored-by: Liam Thompson <[email protected]>
Co-authored-by: Liam Thompson <[email protected]>
Co-authored-by: Nik Everett <[email protected]>
stratoula added a commit to elastic/kibana that referenced this pull request Jun 24, 2025
## Summary

I had to run it manually due to this ES change
elastic/elasticsearch#129839
mridula-s109 pushed a commit to mridula-s109/elasticsearch that referenced this pull request Jun 25, 2025
elastic#125143 added 9 spatial grid functions and released them into Serverless. We think this is not the best long-term approach and the functions in elastic#129581 are likely better.

As a first step, rmove the spatial grid functions added in elastic#125143 from release builds so they don't get released into 8.19/9.1.

---------

Co-authored-by: Craig Taverner <[email protected]>
mridula-s109 pushed a commit to mridula-s109/elasticsearch that referenced this pull request Jun 25, 2025
…o` metadata (elastic#128576)

- Add PREVIEW annotations to all preview functions
- Update docs generation logic to use annotations instead of preview boolean
* Changed stack: ga 9.1 to stack: coming in multiple places
  - Match.java: Updated the options parameter description
  - MultiMatch.java: Updated the options parameter description
  - ToLower.java: Reformatted parameter description and updated version annotation
  - ToUpper.java: Removed the appliesTo annotation entirely and reformatted parameter description

- updated applies_to annotations to specify both preview 9.0.0 and ga 9.1.0 lifecycle stages
- added version-specific documentation examples with applies_to markers for ga 9.1.0 features
- enhanced to_lower and to_upper functions to indicate support for multi-valued expressions in ga 9.1.0
- added version guards around function parameters and descriptions using applies_to syntax
- updated function parameter descriptions to indicate ga 9.1.0 availability for named parameters
- use detailedDescription + and fix match_phrase applies_to syntax
- strip inline applies_to from kibana docs
- update roundto, matchphrase lifecycles
-  fix match named params info
- various spatial functions are preview
- unsigned long is preview
- update qstr
- Update TO_LOWER/TO_UPPER parameter descriptions for clarity
- hide spatial functions per elastic#129839
- added `stack: ga 9.1.0` blocks to match_phrase.md and qstr.md examples
- simplified term.md version from `preview 9.0.0` to just `preview`
- added `applies_to = "stack: ga 9.1.0"` to matchphrase and querystring java annotations
- removed version `9.0.0` from term function annotation
- deleted unused `makeCallout()` and `appendLifeCycleAndVersion()` methods


Co-authored-by: elasticsearchmachine <[email protected]>
Co-authored-by: Liam Thompson <[email protected]>
Co-authored-by: Liam Thompson <[email protected]>
Co-authored-by: Nik Everett <[email protected]>
akowalska622 pushed a commit to akowalska622/kibana that referenced this pull request Jun 25, 2025
## Summary

I had to run it manually due to this ES change
elastic/elasticsearch#129839
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/ES|QL AKA ESQL auto-backport Automatically create backport pull requests when merged backport pending >breaking >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.19.0 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants