Skip to content
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

Draft
wants to merge 22 commits into
base: master
Choose a base branch
from

Conversation

jerry-024
Copy link
Contributor

Purpose

Support Table API in RESTCatalog

Linked issue: #4715 and #4540

Tests

API and Format

Documentation

@jerry-024 jerry-024 marked this pull request as draft December 18, 2024 08:32

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 {
Copy link
Contributor

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.

@@ -433,6 +435,27 @@ public ProcessSystemDatabaseException() {
}
}

/** Exception for trying to operate on a table that doesn't have permission. */
class TableNoPermissionException extends Exception {
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants