-
Notifications
You must be signed in to change notification settings - Fork 1k
Add ParquetError::NeedMoreData
mark ParquetError
as non_exhaustive
#6630
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
Changes from 1 commit
3a753d0
5460f29
6aafcad
6969808
decece0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -47,6 +47,8 @@ pub enum ParquetError { | |||
IndexOutOfBound(usize, usize), | ||||
/// An external error variant | ||||
External(Box<dyn Error + Send + Sync>), | ||||
/// Returned when a function needs more data to complete properly. | ||||
|
||||
NeedMoreData(usize), | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we also mark Like this: arrow-rs/object_store/src/lib.rs Line 1228 in 56525ef
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @alamb If add the
I'm worried that if we add a new error type into |
||||
} | ||||
|
||||
impl std::fmt::Display for ParquetError { | ||||
|
@@ -63,6 +65,7 @@ impl std::fmt::Display for ParquetError { | |||
write!(fmt, "Index {index} out of bound: {bound}") | ||||
} | ||||
ParquetError::External(e) => write!(fmt, "External: {e}"), | ||||
ParquetError::NeedMoreData(needed) => write!(fmt, "NeedMoreData: {needed}"), | ||||
} | ||||
} | ||||
} | ||||
|
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.
💯