Search in sources :

Example 1 with EventStatus

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);
}
Also used : EventStatus(com.facebook.presto.verifier.event.VerifierQueryEvent.EventStatus) Throwables.getStackTraceAsString(com.google.common.base.Throwables.getStackTraceAsString)

Aggregations

EventStatus (com.facebook.presto.verifier.event.VerifierQueryEvent.EventStatus)1 Throwables.getStackTraceAsString (com.google.common.base.Throwables.getStackTraceAsString)1