Skip to content

ESQL: Added Sample operator NamedWritable to plugin #131541

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ivancea
Copy link
Contributor

@ivancea ivancea commented Jul 18, 2025

SampleOperator.Status wasn't declared as a NamedWritable by the plugin, leading to serialization errors when SAMPLE is used with profile: true.

It leads to an IllegalArgumentException: Unknown NamedWriteable [org.elasticsearch.compute.operator.Operator$Status][sample]

Profiles will be tested in this PR: #131474, that's currently failing because of this bug

Draft

This will probably need a new transport version, backported to 9.1, where this operator was released. The TransportVersion should be used within Status#getMinimalSupportedVersion

@ivancea ivancea requested a review from jan-elastic July 18, 2025 15:33
@ivancea ivancea added >bug Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) :Analytics/ES|QL AKA ESQL v9.2.0 v9.1.1 labels Jul 18, 2025
@elasticsearchmachine
Copy link
Collaborator

Hi @ivancea, I've created a changelog YAML for you.

Copy link
Member

@nik9000 nik9000 left a comment

Choose a reason for hiding this comment

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

Adding a TransportVersion and a minimumSupportedVersion should make it skipped for versions that don't support it.

I would recommend making a 9.2 and 9.1 one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/ES|QL AKA ESQL >bug Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v9.1.1 v9.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants