ChisomUma commented on code in PR #10610:
URL: https://github.com/apache/gravitino/pull/10610#discussion_r3023029952


##########
core/src/test/java/org/apache/gravitino/stats/storage/TestLancePartitionStatisticStorage.java:
##########
@@ -594,4 +594,57 @@ public void 
testDropStatisticsWithQuoteInPartitionAndStatisticName() throws Exce
       storage.close();
     }
   }
+
+  @Test
+  public void testUpdateStatisticsWithLargeTableId() throws Exception {
+    PartitionStatisticStorageFactory factory = new 
LancePartitionStatisticStorageFactory();
+    String metalakeName = "metalake";
+    MetadataObject metadataObject =
+        MetadataObjects.of(
+            Lists.newArrayList("catalog", "schema", "table"), 
MetadataObject.Type.TABLE);
+
+    EntityStore entityStore = mock(EntityStore.class);
+    TableEntity tableEntity = mock(TableEntity.class);
+    when(entityStore.get(any(), any(), any())).thenReturn(tableEntity);
+    when(tableEntity.id()).thenReturn(256L);

Review Comment:
   > Yeah, you are right, given that the issue in question #10603 made a 
mistake and I've reverted that change, the new test doesn't actually test 
something new.
   
   @jerryshao 



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

Reply via email to