Skip to content

Commit

Permalink
chore: Merge branch 'poc/compact-memtable' into feat/scan-tree
Browse files Browse the repository at this point in the history
  • Loading branch information
evenyag committed Feb 8, 2024
2 parents b6942e0 + 4f24295 commit fef59a1
Show file tree
Hide file tree
Showing 2 changed files with 266 additions and 21 deletions.
9 changes: 8 additions & 1 deletion src/mito2/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,13 @@ pub enum Error {
error: parquet::errors::ParquetError,
location: Location,
},

#[snafu(display("Failed to iter data part"))]
ReadDataPart {
#[snafu(source)]
error: parquet::errors::ParquetError,
location: Location,
},
}

pub type Result<T, E = Error> = std::result::Result<T, E>;
Expand Down Expand Up @@ -657,7 +664,7 @@ impl ErrorExt for Error {
StaleLogEntry { .. } => StatusCode::Unexpected,
FilterRecordBatch { source, .. } => source.status_code(),
Upload { .. } => StatusCode::StorageUnavailable,
EncodeMemtable { .. } => StatusCode::Internal,
ReadDataPart { .. } | EncodeMemtable { .. } => StatusCode::Internal,
}
}

Expand Down
Loading

0 comments on commit fef59a1

Please sign in to comment.