-
Notifications
You must be signed in to change notification settings - Fork 987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[core] Support Table API in RESTCatalog #4736
base: master
Are you sure you want to change the base?
Conversation
|
||
import static org.apache.paimon.options.CatalogOptions.CASE_SENSITIVE; | ||
import static org.apache.paimon.utils.ThreadPoolUtils.createScheduledThreadPool; | ||
|
||
/** A catalog implementation for REST. */ | ||
public class RESTCatalog implements Catalog { | ||
public class RESTCatalog extends AbstractCatalog { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is OK to let it be a new Catalog
instead of AbstractCatalog
.
AbstractCatalog
has many designs for filesystem and hive only. We can have a new implementation.
a54b17e
to
a90c527
Compare
…base for database api
@@ -433,6 +435,27 @@ public ProcessSystemDatabaseException() { | |||
} | |||
} | |||
|
|||
/** Exception for trying to operate on a table that doesn't have permission. */ | |||
class TableNoPermissionException extends Exception { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it is better to be a RuntimeException? It is better to not bother method interfaces.
Purpose
Support Table API in RESTCatalog
Linked issue: #4715 and #4540
Tests
API and Format
Documentation