Skip to content

Commit

Permalink
Include QueryId in assertDistrubutedQuery failure message
Browse files Browse the repository at this point in the history
  • Loading branch information
pettyjamesm authored and martint committed Mar 31, 2023
1 parent 09280fe commit dad888f
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,15 @@ private static void assertDistributedQuery(
actualResults = resultWithQueryId.getResult().toTestTypes();
}
catch (RuntimeException ex) {
fail("Execution of 'actual' query failed: " + actual, ex);
if (queryId == null && ex instanceof QueryFailedException queryFailedException) {
queryId = queryFailedException.getQueryId();
}
if (queryId != null) {
fail("Execution of 'actual' query " + queryId + " failed: " + actual, ex);
}
else {
fail("Execution of 'actual' query failed: " + actual, ex);
}
}
if (planAssertion.isPresent()) {
try {
Expand Down

0 comments on commit dad888f

Please sign in to comment.