AlbertoSoto25 commented on issue #5565:
URL: https://github.com/apache/iceberg/issues/5565#issuecomment-1765768056

   > Hello again @singhpk234 ,
   > 
   > I was able to fix the issue by rewriting all the code based on official 
AWS docs, append function started to working again. I was not able to fix the 
`sparkSession.catalog.tableExists(s"$catalog.$dbName.$tableName")`, so I did a 
workaround that is working as expected:
   > 
   > ```
   >   def doesTableExistIceberg(spark: SparkSession, table: String): Boolean = 
{
   >       println(s"Checking if table $table exists")
   >       Try {spark.read.table(table)} match {
   >     case Success(i) => true
   >     case Failure(s) => println(s"Failed. Reason: $s"); false
   > }
   > ```
   > 
   > Thanks for your help
   
   Hi, could you show us the followed doc in order to achieve it?
   
   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.

To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to