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: [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]

Reply via email to