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

    https://github.com/apache/spark/pull/2327#discussion_r17439088
  
    --- Diff: 
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala
 ---
    @@ -295,8 +295,16 @@ class HiveQuerySuite extends HiveComparisonTest {
         "SELECT (CASE WHEN key > 2 THEN 3 WHEN 2 > key THEN 2 ELSE 0 END) FROM 
src WHERE key < 15")
     
       test("implement identity function using case statement") {
    -    val actual = sql("SELECT (CASE key WHEN key THEN key END) FROM 
src").collect().toSet
    -    val expected = sql("SELECT key FROM src").collect().toSet
    +    val actual = sql("SELECT (CASE key WHEN key THEN key END) FROM src")
    +      .map { case Row(i: Int) => i }
    +      .collect()
    +      .toSeq
    --- End diff --
    
    Changing this from `toSet` to `toSeq` makes the query possibly order 
dependent.  This could break #2164.


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