You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Terry Kim (Jira)" <ji...@apache.org> on 2020/12/19 20:44:00 UTC

[jira] [Created] (SPARK-33852) Use assertAnalysisError in HiveDDLSuite.scala

Terry Kim created SPARK-33852:
---------------------------------

             Summary: Use assertAnalysisError in HiveDDLSuite.scala
                 Key: SPARK-33852
                 URL: https://issues.apache.org/jira/browse/SPARK-33852
             Project: Spark
          Issue Type: Test
          Components: SQL
    Affects Versions: 3.2.0
            Reporter: Terry Kim


HiveDDLSuite has many of the following patterns:
{code:java}
val e = intercept[AnalysisException] {
  sql(sqlString)
}
assert(e.message.contains(exceptionMessage))
{code}
However, there already exists "assertAnalysisError" helper function which does exactly the same thing.




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org