You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2016/08/12 14:00:27 UTC

[jira] [Resolved] (SPARK-17037) distinct() operator fails on Dataframe with column names containing periods

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

Sean Owen resolved SPARK-17037.
-------------------------------
    Resolution: Duplicate

> distinct() operator fails on Dataframe with column names containing periods
> ---------------------------------------------------------------------------
>
>                 Key: SPARK-17037
>                 URL: https://issues.apache.org/jira/browse/SPARK-17037
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark
>    Affects Versions: 2.0.0
>            Reporter: Michael Styles
>
> Using the distinct() operator on a Dataframe with column names containing periods results in an AnalysisException. For example:
> {noformat}
> d = [{'pageview.count': 100, 'exit_page': 'example.com/landing'}
> df = sqlContext.createDataFrame(d)]
> df.distinct()
> {noformat}
> results in the following error:
> pyspark.sql.utils.AnalysisException: u'Cannot resolve column name "pageview.count" among (exit_page, pageview.count);'



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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