-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Pass parquet2 io errors correctly into arrow2 #3012
[BUG] Pass parquet2 io errors correctly into arrow2 #3012
Conversation
CodSpeed Performance ReportMerging #3012 will not alter performanceComparing Summary
|
src/common/error/src/error.rs
Outdated
@@ -14,7 +14,7 @@ pub enum DaftError { | |||
#[error("DaftError::ComputeError {0}")] | |||
ComputeError(String), | |||
#[error("DaftError::ArrowError {0}")] | |||
ArrowError(#[from] arrow2::error::Error), | |||
ArrowError(String), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can still hold arrow2::error::Error
instead of a string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah gotcha, done
Sorry for the regression, folks. I must have accidentally removed a |
- feature flag was incorrect - incorrectly masked the test! - parquet2 is required, but *only* as a test dep! - therefore, added it as a `[dev-dependency]`
In 7fe3dbc, two changes were made that caused parquet2 io errors to be mishandled.
Firstly, a
IoError
for parquet2 was introduced. However in the implementation ofparquet2::error::Error
forarrow2::error:Error
, any parquet2 error that is notFeatureNotActive
orTransport
is transformed into anExternalFormat
error.Secondly, arrow2 IO errors are intended to be marked as
ByteStreamError
s, primarily so that they are handled as transient errors and can be retried appropriately. However this special case was removed.This PR makes now classifies parquet2 io errors as arrow2 io errors, and arrow2 io errors are now marked as
ByteStreeamError
s.