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 2022/10/08 02:45:47 UTC

[GitHub] [iceberg] dennishuo commented on issue #5512: Accessing Iceberg tables without catalog

dennishuo commented on issue #5512:
URL: https://github.com/apache/iceberg/issues/5512#issuecomment-1272205286

   @Hoeze For your use case is it sufficient to have a "temp view" on your iceberg table that's just available in the spark session that registers it?
   
   Assuming your Iceberg metadata is intact with a `metadata/v#.metadata.json` file under the base Iceberg table path, you should be able to do:
   
       spark.read.format("iceberg").load(iceberg_path).createOrReplaceTempView("my_view")
       spark.sql("select * from my_view")
       
   The iceberg_path should be the parent directory of `metadata/`.


-- 
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-unsubscribe@iceberg.apache.org

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