You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2016/10/11 06:13:20 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=15564616#comment-15564616 ]
Apache Spark commented on SPARK-17866:
--------------------------------------
User 'viirya' has created a pull request for this issue:
https://github.com/apache/spark/pull/15427
> 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