You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Max Gekk (Jira)" <ji...@apache.org> on 2022/10/13 12:04:00 UTC

[jira] [Created] (SPARK-40790) Check error classes in DDL parsing tests

Max Gekk created SPARK-40790:
--------------------------------

             Summary: Check error classes in DDL parsing tests
                 Key: SPARK-40790
                 URL: https://issues.apache.org/jira/browse/SPARK-40790
             Project: Spark
          Issue Type: Sub-task
          Components: SQL
    Affects Versions: 3.4.0
            Reporter: Max Gekk
             Fix For: 3.4.0


Check error classes in CreateNamespaceParserSuite by using checkError(). For instance, replace

{code:scala}
    intercept(
      "CREATE NAMESPACE a.b.c WITH PROPERTIES('key_without_value', 'key_with_value'='x')",
      "Operation not allowed: Values must be specified for key(s): [key_without_value]")
{code}
by
{code:scala}
checkError(
      exception = parseException( "CREATE NAMESPACE a.b.c WITH PROPERTIES('key_without_value', 'key_with_value'='x')"),
      errorClass = "...",
      parameters = Map.empty,
      context = ...)
{code}
at https://github.com/apache/spark/blob/35d00df9bba7238ad4f409999617fae4d04ddbfd/sql/core/src/test/scala/org/apache/spark/sql/execution/command/CreateNamespaceParserSuite.scala#L75-L77





--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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