zhangdove opened a new issue #1150: URL: https://github.com/apache/iceberg/issues/1150
In the docs of Spark(http://iceberg.apache.org/spark/#inspecting-tables ).Should we add some sample code for how to inspect tables by HDFS path? For exmaple: ``` val table = catalog.loadTable(tableIdentifier) table.location() import org.apache.iceberg.MetadataTableType // To show table history by HDFS path spark.read.format("iceberg").load(table.location() + "#" + MetadataTableType.HISTORY).show( truncate = false) // To show the valid snapshots for a table by HDFS path spark.read.format("iceberg").load(table.location() + "#" + MetadataTableType.SNAPSHOTS).show( truncate = false) // To show a table’s file manifests and each file’s metadata by HDFS path spark.read.format("iceberg").load(table.location() + "#" + MetadataTableType.MANIFESTS).show( truncate = false) // To show a table’s data files and each file’s metadata by HDFS path spark.read.format("iceberg").load(table.location() + "#" + MetadataTableType.ALL_DATA_FILES).show( truncate = false) ``` ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
