type SharedBatch = Result<Option<RecordBatch>, Arc<Error>>;
enum SharedBatch { Ok(Option<RecordBatch>), Err(Arc<Error>), }
Contains the success value
Contains the error value