Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import org.apache.spark.sql.connector.catalog.{SupportsAtomicPartitionManagement
/**
* Physical plan node for adding partitions of table.
*/
case class AlterTableAddPartitionExec(
case class AddPartitionExec(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we rename the logical plan as well? The logical plan for REAME is RenameTable as well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is the PR #31596 @cloud-fan @imback82 @dongjoon-hyun Could you take a look at it.

table: SupportsPartitionManagement,
partSpecs: Seq[ResolvedPartitionSpec],
ignoreIfExists: Boolean,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ class DataSourceV2Strategy(session: SparkSession) extends Strategy with Predicat

case AlterTableAddPartition(
r @ ResolvedTable(_, _, table: SupportsPartitionManagement, _), parts, ignoreIfExists) =>
AlterTableAddPartitionExec(
AddPartitionExec(
table,
parts.asResolvedPartitionSpecs,
ignoreIfExists,
Expand All @@ -365,7 +365,7 @@ class DataSourceV2Strategy(session: SparkSession) extends Strategy with Predicat
parts,
ignoreIfNotExists,
purge) =>
AlterTableDropPartitionExec(
DropPartitionExec(
table,
parts.asResolvedPartitionSpecs,
ignoreIfNotExists,
Expand All @@ -374,7 +374,7 @@ class DataSourceV2Strategy(session: SparkSession) extends Strategy with Predicat

case AlterTableRenamePartition(
r @ ResolvedTable(_, _, table: SupportsPartitionManagement, _), from, to) =>
AlterTableRenamePartitionExec(
RenamePartitionExec(
table,
Seq(from).asResolvedPartitionSpecs.head,
Seq(to).asResolvedPartitionSpecs.head,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import org.apache.spark.sql.connector.catalog.{SupportsAtomicPartitionManagement
/**
* Physical plan node for dropping partitions of table.
*/
case class AlterTableDropPartitionExec(
case class DropPartitionExec(
table: SupportsPartitionManagement,
partSpecs: Seq[ResolvedPartitionSpec],
ignoreIfNotExists: Boolean,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import org.apache.spark.sql.connector.catalog.SupportsPartitionManagement
/**
* Physical plan node for renaming a table partition.
*/
case class AlterTableRenamePartitionExec(
case class RenamePartitionExec(
table: SupportsPartitionManagement,
from: ResolvedPartitionSpec,
to: ResolvedPartitionSpec,
Expand Down