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: [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]