aihuaxu commented on code in PR #13219:
URL: https://github.com/apache/iceberg/pull/13219#discussion_r2240463712


##########
spark/v4.0/spark/src/test/java/org/apache/iceberg/spark/source/DataFrameWriteTestBase.java:
##########
@@ -98,10 +100,10 @@ private Dataset<Row> 
createDataset(List<GenericData.Record> records, Schema sche
     }
 
     // verify that the dataframe matches
-    assertThat(rows).hasSameSizeAs(records);
-    Iterator<GenericData.Record> recordIter = records.iterator();
+    assertThat(rows.size()).isEqualTo(records.size());

Review Comment:
   @nastra  I checked the usage and `assertThat(rows).hasSameSizeAs(records);` 
does show the content when the number of records doesn't match compare to 
isEqualTo(), helping for debug. Let me change that.



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