Skip to content

Commit

Permalink
chore: remove unused error variant
Browse files Browse the repository at this point in the history
  • Loading branch information
discord9 authored and WenyXu committed Nov 13, 2024
1 parent 22bf38e commit 2f55711
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/metric-engine/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,6 @@ pub enum Error {
location: Location,
},

#[snafu(display("Column {} not found after alter", column_name))]
ColumnNotFoundAfterAlter {
column_name: String,
#[snafu(implicit)]
location: Location,
},

#[snafu(display("Invalid region metadata"))]
InvalidMetadata {
source: store_api::metadata::MetadataError,
Expand Down Expand Up @@ -258,8 +251,7 @@ impl ErrorExt for Error {
| SerializeColumnMetadata { .. }
| DecodeColumnValue { .. }
| ParseRegionId { .. }
| InvalidMetadata { .. }
| ColumnNotFoundAfterAlter { .. } => StatusCode::Unexpected,
| InvalidMetadata { .. } => StatusCode::Unexpected,

PhysicalRegionNotFound { .. } | LogicalRegionNotFound { .. } => {
StatusCode::RegionNotFound
Expand Down

0 comments on commit 2f55711

Please sign in to comment.