RussellSpitzer commented on code in PR #6376:
URL: https://github.com/apache/iceberg/pull/6376#discussion_r1044117660


##########
docs/spark-procedures.md:
##########
@@ -493,6 +493,38 @@ CALL spark_catalog.system.add_files(
 )
 ```
 
+### `register_table`
+
+Creates a catalog entry for a metadata.json file which already exists but does 
not have a corresponding catalog identifier.
+
+#### Usage
+
+| Argument Name | Required? | Type | Description |
+|---------------|-----------|------|-------------|
+| `table`       | ✔️  | string | Table which is to be registered |
+| `metadata_file`| ✔️  | string | Metadata file which is to be registered as a 
new catalog identifier |
+
+!!! Warning
+Having the same metadata.json registered in more than one catalog can lead to 
missing updates, loss of data, and table corruption. Only use this procedure 
when the table is no longer registered in an existing catalog, or you are 
moving a table between catalogs.

Review Comment:
   This line needs to be indented to have the block work
   
   Please check all do changes after rendering the page to make sure it works
   
   To do so follow the directions here
   https://github.com/apache/iceberg-docs/tree/main
   
   Once I copied the files into the iceberg-docs repo I ran
   hugo in the docs directory to generate the html in the public dir
   
   
![image](https://user-images.githubusercontent.com/413025/206635505-1e59295c-97d3-4fb8-810b-79e50089f6a7.png)
   



-- 
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]

Reply via email to