File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -280,6 +280,7 @@ public Iterator<? extends ToXContent> toXContentChunked(ToXContent.Params params
280280 return b ;
281281 }));
282282 content .add (ChunkedToXContentHelper .array ("drivers" , profile .drivers .iterator (), params ));
283+ content .add (ChunkedToXContentHelper .array ("plans" , profile .plans .iterator ()));
283284 content .add (ChunkedToXContentHelper .endObject ());
284285 }
285286 content .add (ChunkedToXContentHelper .endObject ());
@@ -388,11 +389,8 @@ public EsqlResponse responseInternal() {
388389 return esqlResponse ;
389390 }
390391
391- public record Profile (List <DriverProfile > drivers , List <PlanProfile > plans ) implements Writeable {
392392 public record Profile (List <DriverProfile > drivers , List <PlanProfile > plans ) implements Writeable {
393393
394- public static Profile readFrom (StreamInput in ) throws IOException {
395- return new Profile (in .readCollectionAsImmutableList (DriverProfile ::readFrom ));
396394 public static Profile readFrom (StreamInput in ) throws IOException {
397395 return new Profile (
398396 in .readCollectionAsImmutableList (DriverProfile ::readFrom ),
@@ -405,7 +403,6 @@ public static Profile readFrom(StreamInput in) throws IOException {
405403 @ Override
406404 public void writeTo (StreamOutput out ) throws IOException {
407405 out .writeCollection (drivers );
408- }
409406 if (out .getTransportVersion ().onOrAfter (TransportVersions .ESQL_PROFILE_INCLUDE_PLAN )) {
410407 out .writeCollection (plans );
411408 }
You can’t perform that action at this time.
0 commit comments