cloud-fan commented on a change in pull request #30776:
URL: https://github.com/apache/spark/pull/30776#discussion_r543130135
##########
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:
Yea, we already throw java standard exceptions in many places.
----------------------------------------------------------------
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]