You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2020/07/02 01:36:58 UTC

[GitHub] [iceberg] zhangdove commented on a change in pull request #1151: Add Inspecting tables example by HDFS path in the Iceberg User docs

zhangdove commented on a change in pull request #1151:
URL: https://github.com/apache/iceberg/pull/1151#discussion_r448700693



##########
File path: site/docs/spark.md
##########
@@ -136,6 +136,11 @@ To show table history, run:
 ```scala
 spark.read.format("iceberg").load("db.table.history").show(truncate = false)
 ```
+
+To show table history by HDFS path, run:
+```scala
+spark.read.format("iceberg").load(table.location() + "#" + MetadataTableType.HISTORY).show( truncate = false)

Review comment:
       Thank you for your advice! I have finished the modification.




----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org