deniskuzZ commented on code in PR #12137:
URL: https://github.com/apache/iceberg/pull/12137#discussion_r1955067425


##########
core/src/test/java/org/apache/iceberg/TestPartitionStatsUtil.java:
##########
@@ -370,16 +371,167 @@ public void testPartitionStatsWithSchemaEvolution() 
throws Exception {
             snapshot2.snapshotId()));
   }
 
-  private static PartitionData partitionData(Types.StructType partitionType, 
String c2, String c3) {
-    PartitionData partitionData = new PartitionData(partitionType);
-    partitionData.set(0, c2);
-    partitionData.set(1, c3);
-    return partitionData;
+  @org.junit.Test

Review Comment:
   ````
   Expecting actual:
     [(PartitionData{c2=foo, c1_bucket=0, c1_bucket_4=null}, 0, 100290L, 1, 
38596L, 0L, 0, 0L, 0, 0L, 1739473244037L, 1L),
       (PartitionData{c2=foo, c1_bucket=1, c1_bucket_4=null}, 0, 100293L, 1, 
43840L, 0L, 0, 0L, 0, 0L, 1739473244037L, 1L),
       (PartitionData{c2=bar, c1_bucket=null, c1_bucket_4=0}, 1, 402736L, 4, 
46675L, 0L, 0, 0L, 0, 0L, 1739473244341L, 2L)]
   to contain exactly in any order:
     [(PartitionData{c2=foo, c1_bucket=0, c1_bucket_4=null}, 0, 100290L, 1, 
38596L, 0L, 0, 0L, 0, 0L, 1739473244037L, 1L),
       (PartitionData{c2=foo, c1_bucket=1, c1_bucket_4=null}, 0, 100293L, 1, 
43840L, 0L, 0, 0L, 0, 0L, 1739473244037L, 1L),
       (PartitionData{c2=bar, c1_bucket=null, c1_bucket_4=0}, 1, 100747L, 1, 
5616L, 0L, 0, 0L, 0, 0L, 1739473244341L, 2L),
       (PartitionData{c2=bar, c1_bucket=null, c1_bucket_4=1}, 1, 100122L, 1, 
7260L, 0L, 0, 0L, 0, 0L, 1739473244341L, 2L),
       (PartitionData{c2=bar, c1_bucket=null, c1_bucket_4=2}, 1, 100914L, 1, 
13793L, 0L, 0, 0L, 0, 0L, 1739473244341L, 2L),
       (PartitionData{c2=bar, c1_bucket=null, c1_bucket_4=3}, 1, 100953L, 1, 
20006L, 0L, 0, 0L, 0, 0L, 1739473244341L, 2L)]
   ````



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