jerryshao commented on code in PR #11021:
URL: https://github.com/apache/gravitino/pull/11021#discussion_r3216687506


##########
clients/client-python/tests/unittests/test_relational_table.py:
##########
@@ -348,3 +349,24 @@ def test_extends_supports_tags_class(self) -> None:
                 for method in expected_methods
             )
         )
+
+    def test_extends_supports_statistics_class(self) -> None:
+        table_dto = 
TableDTO.from_json(TestRelationalTable.TABLE_DTO_JSON_STRING)
+        namespace = Namespace.of("metalake_demo", "test_catalog", 
"test_schema")
+        rest_client = HTTPClient("http://localhost:8090";)
+        relational_table = RelationalTable(namespace, table_dto, rest_client)
+
+        self.assertTrue(
+            issubclass(
+                RelationalTable,
+                SupportsStatistics,
+            )
+        )
+        expected_methods = ["list_statistics", "update_statistics", 
"drop_statistics"]
+
+        self.assertTrue(
+            all(
+                callable(getattr(relational_table, method, None))
+                for method in expected_methods
+            )
+        )

Review Comment:
   Can you add the integration tests for this statistics operation?



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