You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Liang-Chi Hsieh (JIRA)" <ji...@apache.org> on 2016/10/11 05:33:20 UTC

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

Liang-Chi Hsieh created SPARK-17866:
---------------------------------------

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


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