MaxGekk commented on a change in pull request #30862:
URL: https://github.com/apache/spark/pull/30862#discussion_r546564643
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLSuite.scala
##########
@@ -1642,9 +1642,10 @@ abstract class DDLSuite extends QueryTest with
SQLTestUtils {
Set(Map("a" -> "10", "b" -> "p"), Map("a" -> "20", "b" -> "c"), Map("a"
-> "3", "b" -> "p")))
// table to alter does not exist
- intercept[NoSuchTableException] {
+ val e = intercept[AnalysisException] {
Review comment:
otherwise with such approach, you will lift all specific exception to
the general one - `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]