Skip to content

Commit e9e4b5a

Browse files
committed
upd
1 parent 42ecb74 commit e9e4b5a

File tree

1 file changed

+9
-7
lines changed
  • x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql

1 file changed

+9
-7
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/CsvTests.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff 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
);

0 commit comments

Comments
 (0)