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

[jira] [Commented] (SPARK-40788) Check error classes in CreateNamespaceParserSuite

    [ https://issues.apache.org/jira/browse/SPARK-40788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17617405#comment-17617405 ] 

BingKun Pan commented on SPARK-40788:
-------------------------------------

I will work on it

> Check error classes in CreateNamespaceParserSuite
> -------------------------------------------------
>
>                 Key: SPARK-40788
>                 URL: https://issues.apache.org/jira/browse/SPARK-40788
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.4.0
>            Reporter: Max Gekk
>            Priority: Major
>              Labels: starter
>             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