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/06/17 00:48:00 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17555334#comment-17555334 ]
Apache Spark commented on SPARK-39497:
--------------------------------------
User 'gengliangwang' has created a pull request for this issue:
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
>
> 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