You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/12/22 12:49:31 UTC
[GitHub] [spark] MaxGekk commented on a change in pull request #30886: [SPARK-33787][SQL] Allow partition purge for v2 tables
MaxGekk commented on a change in pull request #30886:
URL: https://github.com/apache/spark/pull/30886#discussion_r547259509
##########
File path: sql/catalyst/src/main/java/org/apache/spark/sql/connector/catalog/SupportsAtomicPartitionManagement.java
##########
@@ -82,4 +86,19 @@ void createPartitions(
* @return true if partitions were deleted, false if any partition not exists
*/
boolean dropPartitions(InternalRow[] idents);
+
+ /**
+ * Drop an array of partitions atomically from table, and completely remove partitions data
+ * by skipping a trash even if it is supported.
+ * <p>
+ * If any partition doesn't exists,
+ * the operation of purgePartitions need to be safely rolled back.
+ *
+ * @param idents an array of partition identifiers
+ * @return true if partitions were deleted, false if any partition not exists
+ * @throws NoSuchPartitionException If any partition identifier to alter doesn't exist
+ * @throws UnsupportedOperationException If partition purging is not supported
+ */
Review comment:
Actually, I assumed to port this to `branch-3.1` since the interface has not been released yet, see your comment https://github.com/apache/spark/pull/30776#discussion_r543130529
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org