Skip to content

Commit

Permalink
chore: fix cr issue
Browse files Browse the repository at this point in the history
Co-authored-by: fys <[email protected]>
  • Loading branch information
shuiyisong and fengys1996 authored Sep 21, 2023
1 parent 9801eba commit dad3f3d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/common/meta/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ pub enum Error {
location: Location,
},

#[snafu(display("external error"))]
#[snafu(display("External error"))]
External {
location: Location,
source: BoxedError,
Expand Down
14 changes: 7 additions & 7 deletions src/common/query/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,20 @@ use statrs::StatsError;
#[derive(Debug, Snafu)]
#[snafu(visibility(pub))]
pub enum Error {
#[snafu(display("Fail to execute Python UDF: {}", msg))]
#[snafu(display("Failed to execute Python UDF: {}", msg))]
PyUdf {
// TODO(discord9): find a way that prevent circle depend(query<-script<-query) and can use script's error type
msg: String,
location: Location,
},

#[snafu(display("Fail to create temporary recordbatch when eval Python UDF"))]
#[snafu(display("Failed to create temporary recordbatch when eval Python UDF"))]
UdfTempRecordBatch {
location: Location,
source: RecordbatchError,
},

#[snafu(display("Fail to execute function"))]
#[snafu(display("Failed to execute function"))]
ExecuteFunction {
source: DataFusionError,
location: Location,
Expand All @@ -55,25 +55,25 @@ pub enum Error {
location: Location,
},

#[snafu(display("Fail to generate function"))]
#[snafu(display("Failed to generate function"))]
GenerateFunction {
source: StatsError,
location: Location,
},

#[snafu(display("Fail to cast scalar value into vector"))]
#[snafu(display("Failed to cast scalar value into vector"))]
FromScalarValue {
location: Location,
source: DataTypeError,
},

#[snafu(display("Fail to cast arrow array into vector"))]
#[snafu(display("Failed to cast arrow array into vector"))]
FromArrowArray {
location: Location,
source: DataTypeError,
},

#[snafu(display("Fail to cast arrow array into vector: {:?}", data_type))]
#[snafu(display("Failed to cast arrow array into vector: {:?}", data_type))]
IntoVector {
location: Location,
source: DataTypeError,
Expand Down

0 comments on commit dad3f3d

Please sign in to comment.