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

    https://github.com/apache/spark/pull/22075#discussion_r209478694
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/DataFrameFunctionsSuite.scala ---
    @@ -1852,6 +1852,11 @@ class DataFrameFunctionsSuite extends QueryTest with 
SharedSQLContext {
           df.selectExpr("transform(i, x -> x)")
         }
         assert(ex2.getMessage.contains("data type mismatch: argument 1 
requires array type"))
    +
    +    val ex3 = intercept[AnalysisException] {
    +      df.selectExpr("transform(a, x -> x)")
    --- End diff --
    
    The previous behavior was the same. I just added to check the behavior is 
as expected.


---

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

Reply via email to