dramaticlly commented on code in PR #12115: URL: https://github.com/apache/iceberg/pull/12115#discussion_r1953619836
########## docs/docs/spark-procedures.md: ########## @@ -972,4 +972,100 @@ CALL catalog_name.system.compute_table_stats(table => 'my_table', snapshot_id => Collect statistics of the snapshot with id `snap1` of table `my_table` for columns `col1` and `col2` ```sql CALL catalog_name.system.compute_table_stats(table => 'my_table', snapshot_id => 'snap1', columns => array('col1', 'col2')); -``` \ No newline at end of file +``` + +## Table Replication + +The `rewrite-table-path` procedure prepares an Iceberg table for moving or copying to another location. + +### `rewrite-table-path` + +Stages a copy of the Iceberg table's metadata files where every absolute path source prefix is replaced by the specified target prefix. +This can be the starting point to fully or incrementally copy an Iceberg table located under an absolute path under a +source prefix to another under the target prefix. + +!!! info + This procedure only prepares metadata or/and data files for an existing Iceberg table for copying or moving to a new location. Review Comment: No it does not, this is just first step of three: rewrite, copy and re-register. Rewrite focus on iceberg metadata which have path reference, think about metadata.json, manfiest-list, manifest and position delete files, those all contain a file pointer in its content which require rewrite path for. Copy is the second step, where we can copy the files needed to the target. The copy target is superset of rewritten files, also include the data files. -- 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-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org