rdblue commented on code in PR #17159:
URL: https://github.com/apache/iceberg/pull/17159#discussion_r3562189367


##########
core/src/test/java/org/apache/iceberg/TestTrackedFile.java:
##########
@@ -32,7 +33,7 @@ public class TestTrackedFile {
           optional(1, "id", Types.IntegerType.get()), optional(2, "data", 
Types.StringType.get()));
 
   private static final Types.StructType CONTENT_STATS_TYPE =
-      StatsUtil.contentStatsFor(TABLE_SCHEMA).type().asStructType();
+      StatsUtil.statsReadSchema(TABLE_SCHEMA, ImmutableList.of(1, 2));

Review Comment:
   The read schema method is easiest to call for testing since it creates full 
stats structs for each field ID. The write schema method will omit lower and 
upper bounds for `MetricsMode.Counts`.



-- 
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