fix: some TODO in sqlness cases and refactor meta-client error (#2207)

* fix: some TODO in sqlness cases and refactor meta-client error

* fix: delete tests/cases/standalone/alter/drop_col_not_null_next.output
This commit is contained in:
dennis zhuang
2023-08-18 18:09:11 +08:00
committed by GitHub
parent 3150f4b22e
commit 272f649b22
19 changed files with 114 additions and 141 deletions

View File

@@ -18,6 +18,7 @@ use common_error::ext::{BoxedError, ErrorExt};
use common_error::status_code::StatusCode;
use common_procedure::ProcedureId;
use serde_json::error::Error as JsonError;
use servers::define_into_tonic_status;
use snafu::{Location, Snafu};
use store_api::storage::{RegionId, RegionNumber};
use table::error::Error as TableError;
@@ -644,11 +645,7 @@ impl ErrorExt for Error {
}
}
impl From<Error> for tonic::Status {
fn from(err: Error) -> Self {
tonic::Status::from_error(Box::new(err))
}
}
define_into_tonic_status!(Error);
#[cfg(test)]
mod tests {