apache / gravitino

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
https://gravitino.apache.org
Apache License 2.0
1.09k stars 343 forks source link

[EPIC] Refactor Java and Python client API for better user experience #3626

Closed shaofengshi closed 3 months ago

shaofengshi commented 5 months ago

Describe the proposal

The current Java client API is not user-friendly in some aspects; For example, the function that asking a Table's NameIdentifier parameter must be a fully-qualified name (with metalake name, catalog name, together with schema name and table name):

` Catalog catalog = metalake.loadCatalog(catalogName); TableCatalog tableCatalog = catalog.asTableCatalog();

NameIdentifier id = NameIdentifier.of(metalakeName, catalogName, schemaName, tableName);

Table t = tableCatalog.loadTable(id) `

Actually this is not necessary. There are also other issues, create this epic as an umbrella for such refactoring.

Task list

shaofengshi commented 3 months ago

As all dev works are finished, close this issue.