amogh-jahagirdar commented on code in PR #19076:
URL: https://github.com/apache/iceberg/pull/19076#discussion_r4653441231


##########
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:
   Note to reviewers: technically this is testing the value we hand to the 
writer, but it's not really asserting what a rawRead would surface. rawRead 
materializes into TrackedFileStruct, which parses through 
FileFormat.fromString, so the original casing is gone by the time we assert. 
Changing rawRead to keep the raw string would mean returning generic records 
and reworking the comparator-based assertions across the suite, which feels 
like overkill for this imo, considering we read in a case-insensitive manner 
anyways.



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