mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-10-29 15:06:59 +00:00
feat: support "delete" in distributed mode (#1441)
* feat: support "delete" in distributed mode * fix: resolve PR comments
This commit is contained in:
+10
-1
@@ -130,6 +130,12 @@ pub enum Error {
|
||||
table_id: TableId,
|
||||
location: Location,
|
||||
},
|
||||
|
||||
#[snafu(display("Missing time index column in table: {}", table_name))]
|
||||
MissingTimeIndexColumn {
|
||||
table_name: String,
|
||||
location: Location,
|
||||
},
|
||||
}
|
||||
|
||||
impl ErrorExt for Error {
|
||||
@@ -152,7 +158,10 @@ impl ErrorExt for Error {
|
||||
Error::ParseTableOption { .. }
|
||||
| Error::EngineNotFound { .. }
|
||||
| Error::EngineExist { .. } => StatusCode::InvalidArguments,
|
||||
Error::InvalidTable { .. } => StatusCode::Internal,
|
||||
|
||||
Error::InvalidTable { .. } | Error::MissingTimeIndexColumn { .. } => {
|
||||
StatusCode::Internal
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user