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/01 06:35:36 UTC

[GitHub] [iceberg] zhangdove opened a new issue #1150: Add Inspecting tables example by HDFS path in the Iceberg User docs

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



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


[GitHub] [iceberg] zhangdove commented on issue #1150: Add Inspecting tables example by HDFS path in the Iceberg User docs

Posted by GitBox <gi...@apache.org>.
zhangdove commented on issue #1150:
URL: https://github.com/apache/iceberg/issues/1150#issuecomment-652252505


   Thanks for quick response. I have add a PR [1151](https://github.com/apache/iceberg/pull/1151).


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


[GitHub] [iceberg] rdblue closed issue #1150: Add Inspecting tables example by HDFS path in the Iceberg User docs

Posted by GitBox <gi...@apache.org>.
rdblue closed issue #1150:
URL: https://github.com/apache/iceberg/issues/1150


   


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


[GitHub] [iceberg] openinx commented on issue #1150: Add Inspecting tables example by HDFS path in the Iceberg User docs

Posted by GitBox <gi...@apache.org>.
openinx commented on issue #1150:
URL: https://github.com/apache/iceberg/issues/1150#issuecomment-652224477


   Well, seems we only have `hive catalog` examples. Sure, I think it will be helpful for users if we provide the hadoop catalogs example. 
   If you'd like to prepare a pull request, then please go ahead. 
   Thanks.
   


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