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

    https://github.com/apache/spark/pull/19307#discussion_r140211712
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/DataFrameStatSuite.scala ---
    @@ -230,19 +230,16 @@ class DataFrameStatSuite extends QueryTest with 
SharedSQLContext {
     
         val resNaN1 = dfNaN.stat.approxQuantile("input1", Array(q1, q2), 
epsilon)
         assert(resNaN1.count(_.isNaN) === 0)
    -    assert(resNaN1.count(_ == null) === 0)
    --- End diff --
    
    resNaN1 is an Array[Double] so can never contain null. This is always true 
and generated a warning


---

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

Reply via email to