Github user viirya commented on a diff in the pull request:

    https://github.com/apache/spark/pull/14719#discussion_r78271331
  
    --- Diff: sql/core/src/test/scala/org/apache/spark/sql/DataFrameSuite.scala 
---
    @@ -1580,6 +1583,28 @@ class DataFrameSuite extends QueryTest with 
SharedSQLContext {
         assert(df.persist.take(1).apply(0).toSeq(100).asInstanceOf[Long] == 
100)
       }
     
    +  test("""SPARK-17154: df("column_name") should return correct result when 
we do self-join""") {
    --- End diff --
    
    Although I can't immediately think out the actual use case the self-join of 
two same Datasets, I am still wondering do we want to disallow it? 
Conceptually, it should work, even you can't select columns from it due to 
ambiguousness. But I think you can still save it or do other operators on it.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to