[ 
https://issues.apache.org/jira/browse/SPARK-25153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16609061#comment-16609061
 ] 

Fernando Díaz commented on SPARK-25153:
---------------------------------------

I will take a look at it. Quick question:

Given a dataframe with just one column named "Spark.Dots", should the error 
appear for both of the following examples? 
{code:java}
df.col("Spark.Dots")
df.col("Completely.Different.Name"){code}
 In the first case, Spark will try to extract the value "Dots" from the column. 
In the second case, it won't be able to resolve the column because there is no 
column with the qualifier "Completely".

> Improve error messages for columns with dots/periods
> ----------------------------------------------------
>
>                 Key: SPARK-25153
>                 URL: https://issues.apache.org/jira/browse/SPARK-25153
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.4.0
>            Reporter: holdenk
>            Priority: Trivial
>              Labels: starter
>
> When we fail to resolve a column name with a dot in it, and the column name 
> is present as a string literal the error message could mention using 
> backticks to have the string treated as a literal.



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

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

Reply via email to