uex = ErrorHelper.findWrappedCause(cause, UserException.class); if (uex != null) { this.errorType = null; this.cause = cause; } else { OutOfMemoryException oom = ErrorHelper.findWrappedCause(cause, OutOfMemoryException.class); if (oom != null) { this.errorType = DremioPBError.ErrorType.OUT_OF_MEMORY;
return descriptor.getMaterializationFor(helper.getConverter()); } catch (KryoLogicalPlanSerializers.KryoDeserializationException e) { final UserException uex = ErrorHelper.findWrappedCause(e, UserException.class); if (uex != null && uex.getErrorType() == UserBitShared.DremioPBError.ErrorType.SOURCE_BAD_STATE) { logger.debug("failed to expand materialization descriptor {}/{} because source is down, skip for now",