yuqi1129 commented on code in PR #3961:
URL: https://github.com/apache/gravitino/pull/3961#discussion_r1670447926
##########
api/src/main/java/com/datastrato/gravitino/exceptions/NotPartitionedTableException.java:
##########
@@ -0,0 +1,35 @@
+/*
+ * Copyright 2024 Datastrato Pvt Ltd.
+ * This software is licensed under the Apache License version 2.
+ */
+package com.datastrato.gravitino.exceptions;
+
+import com.google.errorprone.annotations.FormatMethod;
+import com.google.errorprone.annotations.FormatString;
+
+/** Exception thrown when a partitioned table does not exist. */
+public class NotPartitionedTableException extends GravitinoRuntimeException {
Review Comment:
I remember the following code being able to solve the problem.
```
default TableCatalog asTableCatalog() throws UnsupportedOperationException
{
throw new UnsupportedOperationException("Catalog does not support table
operations");
}
```
So, keeping `NotPartitionedTableException` is not so necessary.
--
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]