You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/05/01 12:05:01 UTC

[GitHub] [iceberg] ajantha-bhat commented on a diff in pull request #4675: Docs: Document register table support of HiveCatalog

ajantha-bhat commented on code in PR #4675:
URL: https://github.com/apache/iceberg/pull/4675#discussion_r862464804


##########
docs/api/java-api-quickstart.md:
##########
@@ -66,6 +66,17 @@ Table table = catalog.createTable(name, schema, spec);
 
 The logs [schema](#create-a-schema) and [partition spec](#create-a-partition-spec) are created below.
 
+HiveCatalog supports registering the table using a metadata location as below:
+
+```java
+import org.apache.iceberg.Table;
+import org.apache.iceberg.catalog.TableIdentifier;
+
+TableIdentifier name = TableIdentifier.of("logging", "logs");
+// register an existing table to this HiveCatalog.
+Table table = catalog.registerTable(name, metadata_file_location);

Review Comment:
   I left it out thinking it is implicit. 
   Updated it now.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org