forked from apache/gravitino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[apache#3698] refactor (API): Refactor client side RelationalCatalog …
…to use relative path in NameIdentifier (apache#3789) ### What changes were proposed in this pull request? Currently, in the RelationalCatalog.java, the methods like "loadTable", "createTable", "updateTable" all need a NameIdentifier parameter, which needs to be a fully-qualified (metalake.catalog.schema.table) name. But the "metalake" and "catalog" are not needed, as they already be provided when load the catalog. To make the API clear and easier to use, we will change it to use a relative NameIdentifier object (which is "schema.table") as the table's ID, so that the user doesn't need to provide the metalake and catalog names repeatedly. Please note, this only affects the client side. ### Why are the changes needed? To make the API simple and easy to understand. Fix: apache#3698 ### Does this PR introduce _any_ user-facing change? No behavior change, just method parameter. ### How was this patch tested? No introduce new class or method, so the change will be covered by all existing test cases.
- Loading branch information
1 parent
ca9f220
commit c2ae2a3
Showing
24 changed files
with
395 additions
and
593 deletions.
There are no files selected for viewing
131 changes: 47 additions & 84 deletions
131
...e/src/test/java/com/datastrato/gravitino/catalog/hive/integration/test/CatalogHiveIT.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.