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

    https://github.com/apache/spark/pull/9011#discussion_r41773979
  
    --- Diff: 
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala 
---
    @@ -833,6 +833,33 @@ class SQLQuerySuite extends QueryTest with 
SQLTestUtils with TestHiveSingleton {
           ).map(i => Row(i._1, i._2, i._3)))
       }
     
    +  test("window function: refer column in inner select block") {
    +    val data = Seq(
    +      WindowData(1, "a", 5),
    +      WindowData(2, "a", 6),
    +      WindowData(3, "b", 7),
    +      WindowData(4, "b", 8),
    +      WindowData(5, "c", 9),
    +      WindowData(6, "c", 10)
    +    )
    +    sparkContext.parallelize(data).toDF().registerTempTable("windowData")
    --- End diff --
    
    Ah, thanks for suggesting 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