Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/11069#discussion_r51824289
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/interface.scala
---
@@ -71,11 +69,28 @@ abstract class Catalog {
// Partitions
//
--------------------------------------------------------------------------
- // TODO: need more functions for partitioning.
+ def createPartitions(
+ db: String,
+ table: String,
+ parts: Seq[TablePartition],
+ ignoreIfExists: Boolean): Unit
- def alterPartition(db: String, table: String, part: TablePartition): Unit
+ def dropPartitions(
+ db: String,
+ table: String,
+ parts: Seq[PartitionSpec],
+ ignoreIfNotExists: Boolean): Unit
- def alterPartitions(db: String, table: String, parts:
Seq[TablePartition]): Unit
+ def alterPartition(
--- End diff --
add some documentation saying this also allows changing the partition spec.
and let's update alterDatabase / alterTable to say we do not allow renaming
there.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]