Skip to content

Commit

Permalink
fix: make CollectRecordbatch an query error
Browse files Browse the repository at this point in the history
  • Loading branch information
sunng87 committed Oct 19, 2023
1 parent 1842f65 commit 507ae58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/servers/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,6 @@ impl ErrorExt for Error {
Internal { .. }
| InternalIo { .. }
| TokioIo { .. }
| CollectRecordbatch { .. }
| StartHttp { .. }
| StartGrpc { .. }
| AlreadyStarted { .. }
Expand All @@ -403,6 +402,8 @@ impl ErrorExt for Error {
| GrpcReflectionService { .. }
| BuildHttpResponse { .. } => StatusCode::Internal,

CollectRecordbatch { .. } => StatusCode::EngineExecuteQuery,

InsertScript { source, .. }
| ExecuteScript { source, .. }
| ExecuteQuery { source, .. }
Expand Down

0 comments on commit 507ae58

Please sign in to comment.