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/18 10:06:00 UTC
[jira] [Resolved] (SPARK-39783) Column backticks are misplaced in the AnalysisException [UNRESOLVED_COLUMN] error message when using field with "."
[ https://issues.apache.org/jira/browse/SPARK-39783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Max Gekk resolved SPARK-39783.
------------------------------
Fix Version/s: 3.4.0
Resolution: Fixed
Issue resolved by pull request 38256
[https://github.com/apache/spark/pull/38256]
> Column backticks are misplaced in the AnalysisException [UNRESOLVED_COLUMN] error message when using field with "."
> -------------------------------------------------------------------------------------------------------------------
>
> Key: SPARK-39783
> URL: https://issues.apache.org/jira/browse/SPARK-39783
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 3.4.0
> Reporter: Enrico Minack
> Assignee: Enrico Minack
> Priority: Major
> Fix For: 3.4.0
>
>
> AnalysisException {{[UNRESOLVED_COLUMN.WITH_SUGGESTION]}} shows the wrong suggestion when a field with the "." separator is referenced without backticks.
> The following code references a nested value {{{}`the`.`id`{}}}, that does not exist. The proposed / existing column names are not correctly wrapped in backticks:
> {code:scala}
> Seq((0)).toDF("the.id")
> .select("the.id").show()
> org.apache.spark.sql.AnalysisException: [UNRESOLVED_COLUMN.WITH_SUGGESTION] A column or function parameter with name `the`.`id` cannot be resolved. Did you mean one of the following? [`the`.`id`];
> {code}
> Instead of suggesting {{[`the`.`id`]}} in the *error message*, you would expect suggesting {{[`the.id`]}}.
--
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