kazuyukitanimura commented on issue #11741:
URL: https://github.com/apache/iceberg/issues/11741#issuecomment-2537255407

   Just to add @huaxingao's point
   
   tableExists(dbName: String, tableName: String): Boolean
   it is meant to be only for the hardcoded spark_catalog only. But looks like 
@sunny1154  are trying to access iceberg catalog.
   
   For the Spark master branch (future Spark 4.0)
   
https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/internal/CatalogImpl.scala#L551
   ```
     override def tableExists(dbName: String, tableName: String): Boolean = {
       if (sessionCatalog.isGlobalTempViewDB(dbName)) {
         tableExists(Seq(dbName, tableName))
       } else {
         // For backward compatibility (Spark 3.3 and prior), here we always 
look up the table from the
         // Hive Metastore.
         tableExists(Seq(CatalogManager.SESSION_CATALOG_NAME, dbName, 
tableName))
       }
     }
   ```
   this is due to backward compatibility. Is it possible for you to to just use 
the dot notation?


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