Fokko commented on code in PR #771:
URL: https://github.com/apache/iceberg-rust/pull/771#discussion_r1877890713


##########
crates/iceberg/src/spec/table_metadata.rs:
##########
@@ -776,17 +782,12 @@ pub(super) mod _serde {
                     .map(|x| (x.spec_id(), Arc::new(x))),
             );
             let default_spec_id = value.default_spec_id;
-            let default_spec = partition_specs
+            let default_spec: PartitionSpecRef = partition_specs
                 .get(&value.default_spec_id)
-                .map(|schemaless_spec| {
-                    (*schemaless_spec.clone())
-                        .clone()
-                        .bind(current_schema.clone())
-                })
-                .transpose()?
+                .map(|schemaless_spec| (**schemaless_spec).clone())

Review Comment:
   ```suggestion
                   .map(|spec| (**spec).clone())
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to