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

    https://github.com/apache/spark/pull/21401#discussion_r189966177
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/DataFrameFunctionsSuite.scala ---
    @@ -708,6 +708,10 @@ class DataFrameFunctionsSuite extends QueryTest with 
SharedSQLContext {
           df.selectExpr("array_position(array(1, null), array(1, null)[0])"),
           Seq(Row(1L), Row(1L))
         )
    +
    +    intercept[AnalysisException] {
    +      Seq(("a string element", "a")).toDF().selectExpr("array_position(_1, 
_2)")
    +    }
    --- End diff --
    
    Please check the error message, too.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to