aokolnychyi commented on a change in pull request #1409:
URL: https://github.com/apache/iceberg/pull/1409#discussion_r482715860
##########
File path: api/src/main/java/org/apache/iceberg/catalog/Catalog.java
##########
@@ -303,4 +303,83 @@ default boolean dropTable(TableIdentifier identifier) {
* @throws NoSuchTableException if the table does not exist
*/
Table loadTable(TableIdentifier identifier);
+
+ /**
+ * Instantiate a builder to either create a table or start a create/replace
transaction.
+ *
+ * @param identifier a table identifier
+ * @param schema a schema
+ * @return the builder to create a table or start a create/replace
transaction
+ */
+ default TableBuilder buildTable(TableIdentifier identifier, Schema schema) {
+ throw new UnsupportedOperationException("Not implemented: buildTable");
+ }
+
+ /**
+ * A builder used to create valid {@link Table tables}.
+ * <p>
+ * Call {@link #buildTable(TableIdentifier, Schema)} to create a new builder.
+ */
+ interface TableBuilder {
Review comment:
I'll need to fix CachingCatalog.
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]