Skip to content

API: Move generic catalog methods to API#3244

Merged
rdblue merged 2 commits intoapache:masterfrom
rdblue:minor-catalog-refactor
Oct 8, 2021
Merged

API: Move generic catalog methods to API#3244
rdblue merged 2 commits intoapache:masterfrom
rdblue:minor-catalog-refactor

Conversation

@rdblue
Copy link
Contributor

@rdblue rdblue commented Oct 7, 2021

This moves implementations that translate from Catalog methods to the TableBuilder API into the Catalog interface rather than in BaseMetastoreCatalog. This should avoid implementing them in other non-metastore catalogs.

Copy link
Contributor

@nastra nastra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with one nit

public abstract class BaseMetastoreCatalog implements Catalog {
private static final Logger LOG = LoggerFactory.getLogger(BaseMetastoreCatalog.class);

@Override
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I think the same methods can be removed from CachingCatalog as well

@rdblue rdblue merged commit a89a902 into apache:master Oct 8, 2021
@rdblue
Copy link
Contributor Author

rdblue commented Oct 8, 2021

Thanks for the reviews, @nastra and @yyanyy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants