MaxGekk commented on code in PR #47873:
URL: https://github.com/apache/spark/pull/47873#discussion_r1755046575
##########
sql/core/src/test/scala/org/apache/spark/sql/ExplainSuite.scala:
##########
@@ -386,6 +387,24 @@ class ExplainSuite extends ExplainSuiteHelper with
DisableAdaptiveExecutionSuite
Nil: _*)
}
+ test("Catch and log errors when failing to write to external data source") {
+ val password = "MyPassWord"
+ val token = "MyToken"
+ val value = "value"
+ val options = Map("password" -> password, "token" -> token, "key" -> value)
+ val query = spark.range(10).logicalPlan
+ val cmd = SaveIntoDataSourceCommand(query, null, options,
SaveMode.Overwrite)
+
+ checkError(
+ exception = intercept[SparkThrowable] {
+ cmd.run(spark)
+ },
+ errorClass = "DATA_SOURCE_EXTERNAL_ERROR",
Review Comment:
`errorClass` doesn't exist anymore. Please, rebase on the recent master.
--
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]