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

[jira] [Resolved] (SPARK-39497) Improve the analysis exception of missing map key column

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

Gengliang Wang resolved SPARK-39497.
------------------------------------
    Fix Version/s: 3.4.0
       Resolution: Fixed

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

> Improve the analysis exception of missing map key column
> --------------------------------------------------------
>
>                 Key: SPARK-39497
>                 URL: https://issues.apache.org/jira/browse/SPARK-39497
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.4.0
>            Reporter: Gengliang Wang
>            Assignee: Gengliang Wang
>            Priority: Minor
>             Fix For: 3.4.0
>
>
> Sometimes users forgot to add single quotes on the map key string literal, for example `map_col[a]`. In such a case, the Analyzer will throw an exception:
> {code:java}
> [MISSING_COLUMN] Column 'struct.a' does not exist. Did you mean one of the following? ...{code}
> We can improve this message by saying that the user should append single quotes if the map key is a string literal.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org