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

Merged
merged 5 commits into from
Jul 21, 2025
Merged
Show file tree
Hide file tree
Changes from 2 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
5 changes: 5 additions & 0 deletions docs/changelog/131541.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 131541
summary: Added Sample operator `NamedWritable` to plugin
area: ES|QL
type: bug
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public Operator.Status status() {
return new Status(collectNanos, emitNanos, pagesProcessed, rowsReceived, rowsEmitted);
}

private record Status(long collectNanos, long emitNanos, int pagesProcessed, int rowsReceived, int rowsEmitted)
public record Status(long collectNanos, long emitNanos, int pagesProcessed, int rowsReceived, int rowsEmitted)
implements
Operator.Status {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import org.elasticsearch.compute.operator.HashAggregationOperator;
import org.elasticsearch.compute.operator.LimitOperator;
import org.elasticsearch.compute.operator.MvExpandOperator;
import org.elasticsearch.compute.operator.SampleOperator;
import org.elasticsearch.compute.operator.exchange.ExchangeService;
import org.elasticsearch.compute.operator.exchange.ExchangeSinkOperator;
import org.elasticsearch.compute.operator.exchange.ExchangeSourceOperator;
Expand Down Expand Up @@ -321,6 +322,7 @@ public List<NamedWriteableRegistry.Entry> getNamedWriteables() {
entries.add(AsyncOperator.Status.ENTRY);
entries.add(EnrichLookupOperator.Status.ENTRY);
entries.add(LookupFromIndexOperator.Status.ENTRY);
entries.add(SampleOperator.Status.ENTRY);
entries.add(ExpressionQueryBuilder.ENTRY);
entries.add(PlanStreamWrapperQueryBuilder.ENTRY);

Expand Down
Loading