Open xunliu opened 7 months ago
@xunliu I'm interesting in this issue, can I take this?
hi @Lanznx Thank you for your interest in this issue, I assigned to you.
After reviewing the java client and current python client, below is the planned structure and purpose of each file. Could someone please review these and provide feedback? If that's ok, I will begin implementing the task.
test_relational_catalog.py
relational_catalog.py
table.py
table_catalog.py
table_change.py
table_create_request.py
table_update_request.py
table_updates_request.py
table_list_response.py
table_response.py
table_dto.py
After discussion with Tim Wang, I found that there are some things missing (columns, indexes, sort_orders, ...) Current plan will be implement the required elements first. (ref: https://datastrato.ai/docs/0.5.1/api/rest/create-table) To keep the task as small as possible, I will only provide interfaces for those optional elements in the first PR.
So here's the updated Full Version planned structure (but in the first PR will only provide required part) :
test_relational_catalog.py
transform.py
transforms.py
distribution.py
distributions.py
literal.py
literals.py
sort_order.py
sort_orders.py
transform.py
transforms.py
index.py
indexes.py
column.py
table_catalog.py
table.py
table_change.py
relational_catalog.py
table_catalog
base_schema_catalog
table_create_request.py
table_update_request.py
table_updates_request.py
table_list_response.py
table_response.py
table_dto.py
Describe the subtask
Add these Python function interfaces into Gravitino Python client, reference to the document for the API descriptions.
listTables(...): https://datastrato.ai/docs/0.4.0/api/rest/list-tables loadTable(...): https://datastrato.ai/docs/0.4.0/api/rest/load-table createTable(...): https://datastrato.ai/docs/0.4.0/api/rest/create-table alterTable(...): https://datastrato.ai/docs/0.4.0/api/rest/alter-table dropTable(...): https://datastrato.ai/docs/0.4.0/api/rest/drop-table
We can reference the Gravitino JAVA client implementation, RelationalCatalog.java
Parent issue
2113