You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Shixiong Zhu (JIRA)" <ji...@apache.org> on 2017/01/17 18:44:26 UTC

[jira] [Resolved] (SPARK-17866) Dataset.dropDuplicates (i.e., distinct) should not change the output of child plan

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

Shixiong Zhu resolved SPARK-17866.
----------------------------------
    Resolution: Won't Fix

> Dataset.dropDuplicates (i.e., distinct) should not change the output of child plan
> ----------------------------------------------------------------------------------
>
>                 Key: SPARK-17866
>                 URL: https://issues.apache.org/jira/browse/SPARK-17866
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Liang-Chi Hsieh
>            Assignee: Liang-Chi Hsieh
>             Fix For: 2.1.0
>
>
> We create new Alias with new exprId in Dataset.dropDuplicates now. However it causes problem when we want to select the columns as follows:
> {code}
> val ds = Seq(("a", 1), ("a", 2), ("b", 1), ("a", 1)).toDS()
> // ds("_2") will cause analysis exception
> ds.dropDuplicates("_1").select(ds("_1").as[String], ds("_2").as[Int])
> {code}



--
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