Dysprosium0626 commented on code in PR #261:
URL: https://github.com/apache/iceberg-rust/pull/261#discussion_r1533685816


##########
crates/iceberg/src/spec/schema.rs:
##########
@@ -1338,4 +1533,430 @@ table {
             );
         }
     }
+    #[test]
+    fn test_schema_prune_columns_string() {
+        let expected_schema = 
Type::Struct(StructType::new(vec![NestedField::optional(

Review Comment:
   The result of visiting a schema is a `Type`(see 
https://github.com/apache/iceberg/blob/c07f2aabc0a1d02f068ecf1514d2479c0fbdd3b0/api/src/main/java/org/apache/iceberg/types/PruneColumns.java#L49)
 so I construct a `Type` here. 
   Building a schema is ok but I need to get certain field and reconstruct a 
`Type` in `assert_eq`. Do we need to convert all test cases to this style?
   Maybe this is a naming issue cuz `expected_schema ` is actually a type...



-- 
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: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to