Skip to content

Commit

Permalink
handle flight error path
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel committed Mar 25, 2024
1 parent 5eb63e8 commit dba9f93
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/expr/udf/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ impl Error {
}

pub fn is_tonic_error(&self) -> bool {
matches!(self.inner(), ErrorInner::Tonic(_))
match self.inner() {
ErrorInner::Tonic(_) => true,
ErrorInner::Flight(flight_error) => matches!(flight_error, FlightError::Tonic(_)),
_ => false,
}
}
}

Expand Down

0 comments on commit dba9f93

Please sign in to comment.