File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -601,13 +601,15 @@ private ActualResults executePlan(BigArrays bigArrays) throws Exception {
601601 new EsqlExecutionInfo (randomBoolean ()),
602602 planRunner (bigArrays , foldCtx , physicalOperationProviders ),
603603 analyzed ,
604- listener .safeMap (
605- result -> new ActualResults (
606- result .schema ().stream ().map (Attribute ::name ).toList (),
607- result .schema ().stream ().map (a -> Type .asType (a .dataType ().nameUpper ())).toList (),
608- result .schema ().stream ().map (Attribute ::dataType ).toList (),
609- result .pages (),
610- threadPool .getThreadContext ().getResponseHeaders ()
604+ listener .delegateFailureAndWrap (
605+ (l , result ) -> l .onResponse (
606+ new ActualResults (
607+ result .schema ().stream ().map (Attribute ::name ).toList (),
608+ result .schema ().stream ().map (a -> Type .asType (a .dataType ().nameUpper ())).toList (),
609+ result .schema ().stream ().map (Attribute ::dataType ).toList (),
610+ result .pages (),
611+ threadPool .getThreadContext ().getResponseHeaders ()
612+ )
611613 )
612614 )
613615 );
You can’t perform that action at this time.
0 commit comments