You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by maropu <gi...@git.apache.org> on 2018/05/22 16:22:00 UTC

[GitHub] spark pull request #21401: [SPARK-24350][SQL] "array_position" error fix

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: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org