use of com.facebook.presto.verifier.event.VerifierQueryEvent.EventStatus in project presto by prestodb.
the class AbstractVerification method concludeVerificationPartial.
private PartialVerificationResult concludeVerificationPartial(Optional<B> control, Optional<B> test, QueryContext controlQueryContext, QueryContext testQueryContext, Optional<R> matchResult, Optional<DeterminismAnalysisDetails> determinismAnalysisDetails, Optional<Throwable> throwable) {
Optional<SkippedReason> skippedReason = getSkippedReason(throwable, controlQueryContext.getState(), determinismAnalysisDetails.map(DeterminismAnalysisDetails::getDeterminismAnalysis));
Optional<String> resolveMessage = resolveFailure(control, test, controlQueryContext, matchResult, throwable);
EventStatus status = getEventStatus(skippedReason, resolveMessage, matchResult, controlQueryContext, testQueryContext);
return new PartialVerificationResult(skippedReason, resolveMessage, status);
}
Aggregations