refactor: remove useless error (#1624)

* refactor: remove useless

* fix: remove useless error variant
This commit is contained in:
Lei, HUANG
2023-05-22 22:55:27 +08:00
committed by GitHub
parent f64527da22
commit 8e7ec4626b
23 changed files with 24 additions and 395 deletions

View File

@@ -103,9 +103,6 @@ pub enum Error {
location: SnafuLocation,
},
#[snafu(display("Missing sql in coprocessor"))]
MissingSql { location: SnafuLocation },
#[snafu(display("Failed to retrieve record batches, source: {}", source))]
RecordBatch {
#[snafu(backtrace)]
@@ -145,8 +142,7 @@ impl ErrorExt for Error {
Error::PyParse { .. }
| Error::PyCompile { .. }
| Error::CoprParse { .. }
| Error::UnsupportedSql { .. }
| Error::MissingSql { .. } => StatusCode::InvalidArguments,
| Error::UnsupportedSql { .. } => StatusCode::InvalidArguments,
}
}