feat: impl scanning data from storage engine for table (#47)

* feat: impl scanning data from storage for MitoTable

* adds test mod to setup table engine test

* fix: comment error

* fix: boyan -> dennis in todo comments

* fix: remove necessary send in BatchIteratorPtr
This commit is contained in:
dennis zhuang
2022-06-20 15:42:57 +08:00
committed by GitHub
parent 056185eb24
commit 4071b0cff2
10 changed files with 168 additions and 54 deletions

View File

@@ -1,6 +1,9 @@
use datatypes::arrow::error::ArrowError;
use snafu::{Backtrace, Snafu};
// TODO(dennis): use ErrorExt instead.
pub type BoxedError = Box<dyn std::error::Error + Send + Sync>;
#[derive(Debug, Snafu)]
#[snafu(visibility(pub))]
pub enum Error {
@@ -9,6 +12,9 @@ pub enum Error {
source: ArrowError,
backtrace: Backtrace,
},
#[snafu(display("Storage error: {}, source: {}", msg, source))]
Storage { source: BoxedError, msg: String },
}
pub type Result<T> = std::result::Result<T, Error>;