You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Fernando Díaz (JIRA)" <ji...@apache.org> on 2018/09/10 11:58:00 UTC

[jira] [Commented] (SPARK-25153) Improve error messages for columns with dots/periods

    [ 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org