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

    https://github.com/apache/spark/pull/21395#discussion_r189967468
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/DataFrameFunctionsSuite.scala ---
    @@ -756,6 +756,10 @@ class DataFrameFunctionsSuite extends QueryTest with 
SharedSQLContext {
           df.selectExpr("element_at(a, -1)"),
           Seq(Row("3"), Row(""), Row(null))
         )
    +
    +    intercept[AnalysisException] {
    +      Seq(("a string element", 1)).toDF().selectExpr("element_at(_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