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

   I second the question. The issue doesn't look like solved, and it requires a 
workaround.
   
   Here is my workaround based on @t0ma-sz 's one:
   ```scala
     def doesTableExist(fullTableName: String)(implicit spark: SparkSession): 
Boolean = {
       try {
         spark.read.table(fullTableName)
         true
       } catch {
         // If the exception is not AnalysisException, something is wrong so 
the original exception is thrown.
         case _: AnalysisException => 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.

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