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_r284498687
##########
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 {
+ getTable(tableIdentifier);
+ return false;
Review comment:
Looks like it should return a true here.
----------------------------------------------------------------
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]