-
Notifications
You must be signed in to change notification settings - Fork 251
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
fix: fetch remainder of metadata if it is large #873
Conversation
7afdc79
to
dd6bb46
Compare
This comment was marked as resolved.
This comment was marked as resolved.
54442a2
to
2a94717
Compare
}; | ||
|
||
// Need to trim the magic number at end, and the non-manifest data at the beginning | ||
let buf = buf.slice(4..buf.len() - 16); |
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.
What does this 4
stand for?
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.
hmm well my comment ", and the non-manifest data at the beginning" isn't right / specific. I'm not sure yet; all I knew is that it was skipped previously. I guess it's the u32 message length here:
Perhaps we should be reading that length and validating it?
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.
Added validation for that and a better comment 👍
@@ -66,7 +66,7 @@ impl From<&pb::DataFile> for DataFile { | |||
/// | |||
/// A fragment is a set of files which represent the different columns of the same rows. | |||
/// If column exists in the schema, but the related file does not exist, treat this column as `nulls`. | |||
#[derive(Debug, Clone)] | |||
#[derive(Debug, Clone, PartialEq)] |
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.
Why does it require PartialEq
, do you need to sort / storing them in some containers?
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 was for the sake of testing (assert_eq
requires this).
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.
LGTM
can we bump a new version to crates.io? |
@haoxins we will release a new version today. |
Fixes #856