yangshangqing95 commented on code in PR #17134: URL: https://github.com/apache/iceberg/pull/17134#discussion_r3589862955
########## docs/docs/spark-queries.md: ########## @@ -340,6 +340,32 @@ To inspect a table's history, snapshots, and other metadata, Iceberg supports me Metadata tables are identified by adding the metadata table name after the original table name. For example, history for `db.table` is read using `db.table.history`. +### Metadata Tables +To list the metadata tables supported by a table: + +```sql +SELECT * FROM prod.db.table.metadata_tables; +``` + +| metadata_table_name | +|----------------------| +| entries | Review Comment: ordered in alphabetical by default. -- 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]
