dramaticlly opened a new pull request, #18932:
URL: https://github.com/apache/iceberg/pull/18932

   Moveaway to simplfied fluent based assertion in RewriteTablePathResult to 
assert based on composition and soft assertion.
   
   Before
   ``` java
   checkFileNum(6, 3, 3, 15, result);
   ```
   After
   ```java
   assertThat(result)
       .hasVersionFiles(6)
       .hasManifestLists(3)
       .hasManifests(3)
       .hasContentFiles(3)
       .hasNoOtherFiles();
   ```
   
   Also tested a few error messages to be more clear
   ```
   Expected 2 CONTENT_FILE in 
file:/var/folders/xw/d2nxxzss1b7558klgfpv_6n40000gn/T/junit-6162938766665851852/file-list
 but found 3, counts by kind: {VERSION_FILE=6, MANIFEST_LIST=3, MANIFEST=3, 
CONTENT_FILE=3}
   CONTENT_FILE: 
[00000-10-8f6e5f46-1cb0-4677-90d3-698d55ff250c-0-00001.parquet, 
00000-12-ffb6c2d9-905b-48cc-8e44-a8bd0acadf1f-0-00001.parquet, 
00000-11-464e388f-4d48-4f38-a833-4f47404db4aa-0-00001.parquet]
   ```


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