amogh-jahagirdar commented on code in PR #19076:
URL: https://github.com/apache/iceberg/pull/19076#discussion_r4654083201
##########
core/src/test/java/org/apache/iceberg/TestTrackedFileStruct.java:
##########
@@ -171,7 +171,7 @@ void getByPosition() {
assertThat(file.get(pos("content_type"),
Integer.class)).isEqualTo(FileContent.DATA.id());
assertThat(file.get(pos("location"), String.class))
.isEqualTo("s3://bucket/data/00000-0-file.parquet");
- assertThat(file.get(pos("file_format"),
String.class)).isEqualTo(FileFormat.PARQUET.toString());
+ assertThat(file.get(pos("file_format"),
String.class)).isEqualTo("parquet");
Review Comment:
Good idea on TestV4TrackedFileWrappers, though I don't think it warrants a
whole test method for each of those cases. The behavior here is just the string
we write, and every wrapper gets it from the same `lowerCaseName()`, so
separate tests would mostly restate the implementation per call site. I will
add new assertions to the existing leaf and root wrapper tests instead, since
that's already the boundary where we check what the wrapper surfaces.
--
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]