} else { final AttemptReason reason = attemptHandler.isRecoverable( new ReAttemptContext(attemptId, result.getException(), containsHashAgg, isCTAS)); if (reason != AttemptReason.NONE) {
@Test public void testCTAS() { OptionManager options = Mockito.mock(OptionManager.class); ReAttemptHandler attemptHandler = new ExternalAttemptHandler(options); AttemptId id = new AttemptId(); final UserException userException = UserException.memoryError(null).build(NoOutputLogger.INSTANCE); assertEquals(AttemptReason.NONE, attemptHandler.isRecoverable(new ReAttemptContext(id, userException, false, true))); }