From 2f557116748080bbdd420700ba02d72e66d94f97 Mon Sep 17 00:00:00 2001 From: discord9 Date: Tue, 12 Nov 2024 16:13:05 +0800 Subject: [PATCH] chore: remove unused error variant --- src/metric-engine/src/error.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/metric-engine/src/error.rs b/src/metric-engine/src/error.rs index 526affec3b1b..7827a07fd205 100644 --- a/src/metric-engine/src/error.rs +++ b/src/metric-engine/src/error.rs @@ -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, @@ -258,8 +251,7 @@ impl ErrorExt for Error { | SerializeColumnMetadata { .. } | DecodeColumnValue { .. } | ParseRegionId { .. } - | InvalidMetadata { .. } - | ColumnNotFoundAfterAlter { .. } => StatusCode::Unexpected, + | InvalidMetadata { .. } => StatusCode::Unexpected, PhysicalRegionNotFound { .. } | LogicalRegionNotFound { .. } => { StatusCode::RegionNotFound