-
Notifications
You must be signed in to change notification settings - Fork 318
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
[Improvement]: Using unified catalog for server external catalog. #2232
Conversation
Codecov ReportAttention:
... and 9 files with indirect coverage changes 📢 Thoughts on this report? Let us know! |
import java.util.Set; | ||
|
||
public class CatalogBuilder { | ||
|
||
// TODO: use internal or external concepts | ||
/** matrix of catalog type and supported table formats */ | ||
private static final Map<String, Set<TableFormat>> formatSupportedMatrix = |
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.
What formats are supported by each catalog is quite important information. For example, CatalogController has similar information. Can you expose and share this information?
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 also think these two parts are somewhat repetitive.
BTW, for the variable name of "static final", it is better to use capital letters with underscores.
ams/server/src/main/java/com/netease/arctic/server/catalog/ExternalCatalog.java
Outdated
Show resolved
Hide resolved
BTW, Your need test in local kerberos env |
Need add UT for AmoroCatalog of mixed-format |
core/src/main/java/com/netease/arctic/catalog/BasicIcebergCatalog.java
Outdated
Show resolved
Hide resolved
core/src/test/java/com/netease/arctic/catalog/TableTestBase.java
Outdated
Show resolved
Hide resolved
ams/server/src/test/java/com/netease/arctic/server/AmsEnvironment.java
Outdated
Show resolved
Hide resolved
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.
LGTM.
# Conflicts: # core/src/main/java/com/netease/arctic/utils/ArcticTableUtil.java
…ache#2232) * Using unified catalog for server external catalog. * fix hard code texts. * spotless:apply * add deprecated of ArcticCatalog initialize * remove useless initialize * remove useless code. * remove catalog.refresh() * spotless:apply * fix unit tests. * catalog impl to private * build catalog to private * remove IcebergCatalogWrapper.java * spotless:apply * remove useless comments. * remove useless code. * spotless:apply * fix unit tests in core * fix unit tests. * apply spotless
Why are the changes needed?
This is a subtask of #1061.
In this PR, the AMS will use UnifiedCatalog as ExternalCatalog implement.
Brief change log
How was this patch tested?
Add some test cases that check the changes thoroughly including negative and positive cases if possible
Add screenshots for manual tests if appropriate
Run test locally before making a pull request
Documentation