cloud-fan commented on a change in pull request #29339:
URL: https://github.com/apache/spark/pull/29339#discussion_r519938014
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/v2Commands.scala
##########
@@ -589,3 +589,37 @@ case class AnalyzeColumn(
"mutually exclusive. Only one of them should be specified.")
override def children: Seq[LogicalPlan] = child :: Nil
}
+
+/**
+ * The logical plan of the ALTER TABLE ADD PARTITION command.
+ *
+ * The syntax of this command is:
+ * {{{
+ * ALTER TABLE table ADD [IF NOT EXISTS]
+ * PARTITION spec1 [LOCATION 'loc1'][, PARTITION spec2
[LOCATION 'loc2'], ...];
+ * }}}
+ */
+case class AlterTableAddPartition(
+ child: LogicalPlan,
+ parts: Seq[PartitionSpec],
+ ifNotExists: Boolean) extends Command {
+ override def children: Seq[LogicalPlan] = child :: Nil
+}
+
+/**
+ * The logical plan of the ALTER TABLE DROP PARTITION command.
+ * This may remove the data and metadata for this partition.
+ *
+ * The syntax of this command is:
+ * {{{
+ * ALTER TABLE table DROP [IF EXISTS] PARTITION spec1[, PARTITION spec2,
...];
+ * }}}
+ */
+case class AlterTableDropPartition(
+ child: LogicalPlan,
+ parts: Seq[PartitionSpec],
Review comment:
ditto
----------------------------------------------------------------
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]