-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Remove unwrap()
in ManifestListWriter.close()
#177
Comments
unwrap
in ManifestListWriter.close()
unwrap()
in ManifestListWriter.close()
Thanks for reporting! |
@Fokko @liurenjie1024 I think this issue has not been resolved, since I'm kind of disagree with the pull request.
Could you please reopen this issue? |
|
I remember why we use
Yes, it seems we still need to implement Serialization/Deserialization manually, but it's still a wrapper of the conversion from |
In the following code, from:
impl From<TableMetadata> for TableMetadataV1 {
fn from(v: TableMetadata) -> Self {
TableMetadataV1 {
format_version: VersionNumber::<1>,
table_uuid: Some(v.table_uuid),
location: v.location,
last_updated_ms: v.last_updated_ms,
last_column_id: v.last_column_id,
schema: v
.schemas
.get(&v.current_schema_id)
.expect("current_schema_id not found in schemas")
.as_ref()
.clone()
.into(), The code |
It's handled here.
When we convert
I agree. It panics only when |
@odysa Apologies, I have totally misinterpreted the code. I regret any inconvenience caused by my misunderstanding. Please ignore my previous comment. |
Is this issue still valid given #185 ? This seems addressed. Apologies for the noise, surfing good first issues for something to get started on. |
@tabmatfournier Yeah, I think it's closed, thanks for reporting this. |
unwrap()
should not be used in normal code, butManifestListWriter.close()
uses it.It should be removed and the error should be properly handled like
ManifestWriter.write()
.The text was updated successfully, but these errors were encountered: