Skip to content

Move ES|QL sample command from snapshot to tech preview #129540

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 5 commits into from
Jun 18, 2025

Conversation

jan-elastic
Copy link
Contributor

No description provided.

@elasticsearchmachine elasticsearchmachine added v9.1.0 needs:triage Requires assignment of a team area label labels Jun 17, 2025
@jan-elastic jan-elastic review requested due to automatic review settings June 17, 2025 10:32
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR moves the ES|QL SAMPLE command and its related parameter support from being enabled only on snapshot builds to always enabled as part of tech preview.

  • Removes conditional enabling based on Build.current().isSnapshot() for SAMPLE_V3
  • Removes conditional enabling based on Build.current().isSnapshot() for PARAMETER_FOR_SAMPLE
Comments suppressed due to low confidence (2)

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java:1085

  • Since the conditional flag has been removed for SAMPLE_V3, please update the Javadoc to reflect that it is now part of the tech preview rather than available only on snapshot builds.
SAMPLE_V3,

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java:1210

  • Since the conditional flag has been removed for PARAMETER_FOR_SAMPLE, please update its associated documentation to indicate that this capability is now available in tech preview.
PARAMETER_FOR_SAMPLE;

@jan-elastic jan-elastic added :ml Machine learning Team:ML Meta label for the ML team >non-issue and removed needs:triage Requires assignment of a team area label labels Jun 17, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

@jan-elastic jan-elastic requested a review from nik9000 June 17, 2025 10:33
Copy link
Contributor

@alex-spies alex-spies left a comment

Choose a reason for hiding this comment

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

Documentation already updated in #129350.

@jan-elastic, this change only enables the SAMPLE tests in non-SNAPSHOT builds - to actually enable it, you'll need to update the grammar and move SAMPLE out of the dev commands/stop guarding it behind this.isDevVersion().

@jan-elastic jan-elastic requested a review from alex-spies June 17, 2025 14:41
@alex-spies
Copy link
Contributor

Should this be backported to 8.19, too?

@jan-elastic jan-elastic force-pushed the esql-command-tech-preview branch from d5d0631 to 2d383cc Compare June 18, 2025 06:02
@jan-elastic
Copy link
Contributor Author

Should this be backported to 8.19, too?

All of SAMPLE still needs to be backported; that's on my todo list for this week

@jan-elastic jan-elastic force-pushed the esql-command-tech-preview branch from 2d383cc to 567b937 Compare June 18, 2025 08:58
@jan-elastic jan-elastic added the test-release Trigger CI checks against release build label Jun 18, 2025
@jan-elastic jan-elastic force-pushed the esql-command-tech-preview branch from 567b937 to 479a84a Compare June 18, 2025 08:59
@jan-elastic jan-elastic removed the test-release Trigger CI checks against release build label Jun 18, 2025
@jan-elastic jan-elastic merged commit 904c60f into elastic:main Jun 18, 2025
27 checks passed
jan-elastic added a commit to jan-elastic/elasticsearch that referenced this pull request Jun 18, 2025
* Move ES|QL sample command from snapshot to tech preview

* dev_sample -> sample

* fix test

* fix grammar
jan-elastic added a commit to jan-elastic/elasticsearch that referenced this pull request Jun 19, 2025
* Move ES|QL sample command from snapshot to tech preview

* dev_sample -> sample

* fix test

* fix grammar
jan-elastic added a commit that referenced this pull request Jun 19, 2025
* ES|QL random sampling  (#125570)

* test: check ES|QL SAMPLE capability before running analyzer/parser tests (#127382)

This commit resolves release test failures by checking the ES|QL SAMPLE capability before running the tests.

* Fix ES|QL sample csv tests (#127838)

* Remove optional seed from ES|QL SAMPLE (#128887)

* Remove optional seed from ES|QL SAMPLE

* make it clear that seed is for testing

* rename ES|QL sample capability (#129193)

* remove stats correction from ES|QL sample (#129319)

* remove stats correction from ES|QL sample

* [CI] Auto commit changes from spotless

---------

Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>

* Allow parameter for ES|QL SAMPLE (#129392)

* Allow parameter for ES|QL SAMPLE

* fix test to work around issue #120272

* remove unused postAnalysisVerification

* docs

* [CI] Auto commit changes from spotless

* fix usage

* Move ES|QL sample command from snapshot to tech preview (#129540)

* Move ES|QL sample command from snapshot to tech preview

* dev_sample -> sample

* fix test

* fix grammar

---------

Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:ml Machine learning >non-issue Team:ML Meta label for the ML team v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants