RussellSpitzer commented on issue #4659:
URL: https://github.com/apache/iceberg/issues/4659#issuecomment-1112153173

   This is not quite correct. The issue here is that you are specifying a file 
path instead of a table identifier. When you use a file path to load a table in 
Spark, Iceberg assumes that the data is using a `Hadoop Catalog` because a Hive 
Catalog Table cannot be read from path alone. A Hive Catalog Table needs to 
know the specific metadata.json file to load.
   
   To load the table correctly, if your Metastore is correctly configured. You 
setup the Catalog API as specified in the docs 
https://iceberg.apache.org/docs/latest/getting-started/#adding-catalogs and 
then you can access your table with
   `spark.table("catalog.namespace.table")` or 
`spark.read.format("iceberg").load("catalog.namespace.table")`
   
   


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