linxingyuan1102 commented on a change in pull request #187: Catalog 
Implementation for hive and hadoop.
URL: https://github.com/apache/incubator-iceberg/pull/187#discussion_r284501790
 
 

 ##########
 File path: api/src/main/java/org/apache/iceberg/catalog/Catalog.java
 ##########
 @@ -50,7 +51,14 @@ Table createTable(
    * @param tableIdentifier an identifier to identify this table in a 
namespace.
    * @return true if table exists, false if it doesn't.
    */
-  boolean tableExists(TableIdentifier tableIdentifier);
+  default boolean tableExists(TableIdentifier tableIdentifier) {
+    try {
 
 Review comment:
   The implementation here simplifies code but also introduces 
exception-handling to ordinary control flow. An alternative is to leave the 
method blank and give the implementors discretion about how to do it.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to