mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-26 18:00:41 +00:00
refactor: remove useless error (#1624)
* refactor: remove useless * fix: remove useless error variant
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user