-
Notifications
You must be signed in to change notification settings - Fork 349
Refactor GenericTableCatalog to support generic table federation #1579
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
Changes from 4 commits
69337a0
e5c10d0
6c68f18
4feb77b
d2ecece
ebb75f7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -22,163 +22,21 @@ | |||||
| import java.util.Map; | ||||||
| import org.apache.iceberg.catalog.Namespace; | ||||||
| import org.apache.iceberg.catalog.TableIdentifier; | ||||||
| import org.apache.iceberg.exceptions.AlreadyExistsException; | ||||||
| import org.apache.iceberg.exceptions.NoSuchNamespaceException; | ||||||
| import org.apache.iceberg.exceptions.NoSuchTableException; | ||||||
| import org.apache.polaris.core.catalog.PolarisCatalogHelpers; | ||||||
| import org.apache.polaris.core.context.CallContext; | ||||||
| import org.apache.polaris.core.entity.CatalogEntity; | ||||||
| import org.apache.polaris.core.entity.PolarisEntity; | ||||||
| import org.apache.polaris.core.entity.PolarisEntitySubType; | ||||||
| import org.apache.polaris.core.entity.PolarisEntityType; | ||||||
| import org.apache.polaris.core.entity.table.GenericTableEntity; | ||||||
| import org.apache.polaris.core.persistence.PolarisMetaStoreManager; | ||||||
| import org.apache.polaris.core.persistence.PolarisResolvedPathWrapper; | ||||||
| import org.apache.polaris.core.persistence.dao.entity.BaseResult; | ||||||
| import org.apache.polaris.core.persistence.dao.entity.DropEntityResult; | ||||||
| import org.apache.polaris.core.persistence.dao.entity.EntityResult; | ||||||
| import org.apache.polaris.core.persistence.pagination.PageToken; | ||||||
| import org.apache.polaris.core.persistence.resolver.PolarisResolutionManifestCatalogView; | ||||||
| import org.slf4j.Logger; | ||||||
| import org.slf4j.LoggerFactory; | ||||||
|
|
||||||
| public class GenericTableCatalog { | ||||||
| private static final Logger LOGGER = LoggerFactory.getLogger(GenericTableCatalog.class); | ||||||
| /** A catalog for managing `GenericTableEntity`s */ | ||||||
|
||||||
| /** A catalog for managing `GenericTableEntity`s */ | |
| /** A catalog for managing GenericTableEntity`s */ |
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.
No I mean GenericTableEntitys or {@link GenericTableEntity}s... I guess if we want to be super grammatical we can say {@link GenericTableEntity} instances
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.
This used to be a concrete implementation, but is becoming an interface
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.
I like the idea !
wondering if you are open to adding
name()andinitialize(String name, Map<String, String> properties)like the Catalog interface of iceberg.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.
Yeah, I think it's a good idea -- for federation we'll definitely want some kind of initialize