singhpk234 commented on code in PR #4675:
URL: https://github.com/apache/iceberg/pull/4675#discussion_r862382955
##########
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:
+1 on documenting this, do we need to additionally call-out that this needs
to be a json file and compliant with metadata.json format ? as per
[CP](https://github.com/apache/iceberg/blob/master/core/src/main/java/org/apache/iceberg/TableMetadataParser.java#L261-L268)
or is it self implied, Your thoughts ?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]