MaxGekk commented on code in PR #49050:
URL: https://github.com/apache/spark/pull/49050#discussion_r1869049165
##########
sql/core/src/test/scala/org/apache/spark/sql/execution/command/v1/AlterTableSetLocationSuite.scala:
##########
@@ -134,6 +135,23 @@ trait AlterTableSetLocationSuiteBase extends
command.AlterTableSetLocationSuiteB
"tableName" -> "`spark_catalog`.`ns`.`tbl`"))
}
}
+
+ test("SPARK-50485: Unwrap SparkThrowable in UEE thrown by
tableRelationCache") {
+ withNamespaceAndTable("ns", "tbl") { t =>
+ sql(buildCreateTableSQL(t))
+ sql(s"CREATE TABLE t (a INT)")
Review Comment:
```suggestion
sql(s"CREATE TABLE $t (a INT)")
```
##########
sql/core/src/test/scala/org/apache/spark/sql/execution/command/v1/AlterTableSetLocationSuite.scala:
##########
@@ -134,6 +135,23 @@ trait AlterTableSetLocationSuiteBase extends
command.AlterTableSetLocationSuiteB
"tableName" -> "`spark_catalog`.`ns`.`tbl`"))
}
}
+
+ test("SPARK-50485: Unwrap SparkThrowable in UEE thrown by
tableRelationCache") {
+ withNamespaceAndTable("ns", "tbl") { t =>
+ sql(buildCreateTableSQL(t))
+ sql(s"CREATE TABLE t (a INT)")
+ checkError(
+ exception = intercept[SparkUnsupportedOperationException] {
+ sql(s"ALTER TABLE t SET LOCATION 'https://mister/spark'")
Review Comment:
```suggestion
sql(s"ALTER TABLE $t SET LOCATION 'https://mister/spark'")
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]