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 2023/04/11 10:44:00 UTC

[jira] [Resolved] (SPARK-43028) Add error class SQL_CONF_NOT_FOUND

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

Max Gekk resolved SPARK-43028.
------------------------------
    Fix Version/s: 3.5.0
       Resolution: Fixed

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

> Add error class SQL_CONF_NOT_FOUND
> ----------------------------------
>
>                 Key: SPARK-43028
>                 URL: https://issues.apache.org/jira/browse/SPARK-43028
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.5.0
>            Reporter: Allison Wang
>            Assignee: Allison Wang
>            Priority: Major
>             Fix For: 3.5.0
>
>
> Use the error class when getting a non-existing SQL config. Currently the error message is not user-friendly:
> {code:java}
> spark.conf.get("some.conf") 
> java.util.NoSuchElementException: some.conf
>  at org.apache.spark.sql.errors.QueryExecutionErrors$.noSuchElementExceptionError(QueryExecutionErrors.scala:2154)
>  at org.apache.spark.sql.internal.SQLConf.$anonfun$getConfString$3(SQLConf.scala:4947)
> ...{code}



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