MaxGekk commented on a change in pull request #30776:
URL: https://github.com/apache/spark/pull/30776#discussion_r543121508
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/execution/command/v2/AlterTableDropPartitionSuite.scala
##########
@@ -63,4 +63,19 @@ class AlterTableDropPartitionSuite
assert(errMsg.contains("can not alter partitions"))
}
}
+
+ test("purge partition data") {
+ withNsTable("ns", "tbl") { t =>
+ sql(s"CREATE TABLE $t (id bigint, data string) $defaultUsing PARTITIONED
BY (id)")
+ sql(s"ALTER TABLE $t ADD PARTITION (id=1)")
+ try {
+ val errMsg = intercept[UnsupportedOperationException] {
Review comment:
@cloud-fan Is it ok that we propagate java's exception
`UnsupportedOperationException` to users instead of Spark's `AnalysisException`?
----------------------------------------------------------------
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]