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/16 16:58:00 UTC

[jira] [Resolved] (SPARK-40786) Check error classes in PlanParserSuite

     [ https://issues.apache.org/jira/browse/SPARK-40786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Max Gekk resolved SPARK-40786.
------------------------------
    Resolution: Fixed

Issue resolved by pull request 38271
[https://github.com/apache/spark/pull/38271]

> Check error classes in PlanParserSuite
> --------------------------------------
>
>                 Key: SPARK-40786
>                 URL: https://issues.apache.org/jira/browse/SPARK-40786
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.4.0
>            Reporter: Max Gekk
>            Assignee: BingKun Pan
>            Priority: Major
>              Labels: starter
>             Fix For: 3.4.0
>
>
> Check error classes in PlanParserSuite by using checkError(). For instance, replace
> {code:scala}
> intercept("EXPLAIN logical SELECT 1", "Unsupported SQL statement")
> {code}
> by
> {code:scala}
> checkError(
>       exception = parseException("EXPLAIN logical SELECT 1"),
>       errorClass = "...",
>       parameters = Map.empty,
>       context = ...)
> {code}
> at https://github.com/apache/spark/blob/35d00df9bba7238ad4f409999617fae4d04ddbfd/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/parser/PlanParserSuite.scala#L225



--
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