mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-20 23:10:37 +00:00
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:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user