You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2022/10/14 07:41:00 UTC
[jira] [Assigned] (SPARK-40787) Check error classes in SparkSqlParserSuite
[ https://issues.apache.org/jira/browse/SPARK-40787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-40787:
------------------------------------
Assignee: (was: Apache Spark)
> Check error classes in SparkSqlParserSuite
> ------------------------------------------
>
> Key: SPARK-40787
> URL: https://issues.apache.org/jira/browse/SPARK-40787
> 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 SparkSqlParserSuite by using checkError(). For instance, replace
> {code:scala}
> intercept("SET spark.sql.key value", expectedErrMsg)
> {code}
> by
> {code:scala}
> checkError(
> exception = parseException("SET spark.sql.key value"),
> errorClass = "...",
> parameters = Map.empty,
> context = ...)
> {code}
> at https://github.com/apache/spark/blob/7309e76d8b95e306d6f3d2f611316b748949e9cf/sql/core/src/test/scala/org/apache/spark/sql/execution/SparkSqlParserSuite.scala#L113
--
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