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

Apache Spark reassigned SPARK-39497:
------------------------------------

    Assignee: Apache Spark  (was: Gengliang Wang)

> 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: Apache Spark
>            Priority: Minor
>
> 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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to