[ https://issues.apache.org/jira/browse/KUDU-3617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gabriella Lotz updated KUDU-3617: --------------------------------- Description: Currently there is no function that would open a table by ID, only by the table's name. A simple function to the C++ client like this could solve the issue: {code:java} Status KuduClient::OpenTableById(const string& table_id, shared_ptr<KuduTable>* table) { TableIdentifierPB table_identifier; table_identifier.set_table_id(table_id); return data_->OpenTable(this, table_identifier, table); } {code} After implementing this to the c++ client, it should also be available in the java and python client too. was: Currently there is no function that would open a table by ID, only by the table's name. A simple function to the C++ client like this could solve the issue: {code:java} Status KuduClient::OpenTableById(const string& table_id, shared_ptr<KuduTable>* table) { TableIdentifierPB table_identifier; table_identifier.set_table_id(table_id); return data_->OpenTable(this, table_identifier, table); } {code} > Create OpenTable function by ID > ------------------------------- > > Key: KUDU-3617 > URL: https://issues.apache.org/jira/browse/KUDU-3617 > Project: Kudu > Issue Type: Improvement > Components: client > Reporter: Gabriella Lotz > Priority: Major > > Currently there is no function that would open a table by ID, only by the > table's name. > A simple function to the C++ client like this could solve the issue: > {code:java} > Status KuduClient::OpenTableById(const string& table_id, > shared_ptr<KuduTable>* table) > { > TableIdentifierPB table_identifier; > table_identifier.set_table_id(table_id); > return data_->OpenTable(this, table_identifier, table); > } {code} > After implementing this to the c++ client, it should also be available in the > java and python client too. -- This message was sent by Atlassian Jira (v8.20.10#820010)