You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "yruslan (via GitHub)" <gi...@apache.org> on 2025/02/27 14:44:53 UTC

Re: [I] [Spark] Cannot append to Glue table - StorageDescriptor#InputFormat cannot be null for table [iceberg]

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