You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Li Jin (JIRA)" <ji...@apache.org> on 2018/08/23 18:41:00 UTC

[jira] [Updated] (SPARK-25216) Provide better error message when a column contains dot and needs backticks quote

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

Li Jin updated SPARK-25216:
---------------------------
    Description: 
The current error message is  often confusing to a new Spark user that a column containing "." needs backticks quote. 

For example, the current message looks like:
{code:java}
Cannot resolve column name "a.b" among (a.b)
{code}
We could improve the error message to, e.g: 
{code:java}
Cannot resolve column name "a.b" among (a.b). Try adding backticks to the column name, i.e., `a.b`;
{code}
 

  was:
The current error message is  often confusing to a new Spark user that a column containing "." needs backticks quote. 

For example, the current message looks like:

 
{code:java}
Cannot resolve column name "a.b" among (a.b)
{code}
 

We could improve the error message to, e.g:

 
{code:java}
Cannot resolve column name "a.b" among (a.b). Try adding backticks to the column name, i.e., `a.b`;
{code}
 

 

 


> Provide better error message when a column contains dot and needs backticks quote
> ---------------------------------------------------------------------------------
>
>                 Key: SPARK-25216
>                 URL: https://issues.apache.org/jira/browse/SPARK-25216
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.4.0
>            Reporter: Li Jin
>            Priority: Major
>
> The current error message is  often confusing to a new Spark user that a column containing "." needs backticks quote. 
> For example, the current message looks like:
> {code:java}
> Cannot resolve column name "a.b" among (a.b)
> {code}
> We could improve the error message to, e.g: 
> {code:java}
> Cannot resolve column name "a.b" among (a.b). Try adding backticks to the column name, i.e., `a.b`;
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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