RussellSpitzer commented on code in PR #19067:
URL: https://github.com/apache/iceberg/pull/19067#discussion_r4672964518


##########
core/src/test/java/org/apache/iceberg/rest/TestRESTCatalog.java:
##########
@@ -3817,6 +3817,38 @@ public void testNumLoadTableCallsForMergeAppend() {
             any());
   }
 
+  @Test
+  void numLoadTableCallsForFastAppend() {
+    RESTCatalogAdapter adapter = Mockito.spy(new 
RESTCatalogAdapter(backendCatalog));
+    RESTCatalog catalog = catalog(adapter);
+
+    catalog.createNamespace(TABLE.namespace());
+    Table table = catalog.createTable(TABLE, SCHEMA);
+    table.newFastAppend().appendFile(FILE_A).commit();
+
+    Mockito.verify(adapter, times(1))
+        .execute(matches(HTTPMethod.GET, RESOURCE_PATHS.table(TABLE)), any(), 
any(), any());
+
+    Mockito.verify(adapter, timeout(5000))

Review Comment:
   Do we need to check this? Isn't the test just for the load count?



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