beyond1920 commented on a change in pull request #6906: [Flink-6036][table]Let
catalog support partition.
URL: https://github.com/apache/flink/pull/6906#discussion_r227719708
##########
File path:
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/catalog/CrudExternalCatalog.scala
##########
@@ -103,4 +105,61 @@ trait CrudExternalCatalog extends ExternalCatalog {
@throws[CatalogNotExistException]
def alterSubCatalog(name: String, catalog: ExternalCatalog,
ignoreIfNotExists: Boolean): Unit
+
+ /**
+ * Adds partition into an external Catalog table
+ *
+ * @param tableName table name
+ * @param partition partition description of partition which to create
+ * @param ignoreIfExists if partition already exists in the catalog, not
throw exception and
+ * leave the existed partition if ignoreIfExists is
true;
+ * else throw PartitionAlreadyExistException
+ * @throws CatalogNotExistException if database does not exist in the
catalog yet
+ * @throws TableNotExistException if table does not exist in the
catalog yet
+ * @throws PartitionAlreadyExistException if partition exists in the
catalog and
+ * ignoreIfExists is false
+ */
+ @throws[TableNotExistException]
+ @throws[PartitionAlreadyExistException]
+ def createPartition(
Review comment:
Sorry, there is no need to keep CatalogNotExistException. I remove it.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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