yaooqinn commented on a change in pull request #26905: [SPARK-30266][SQL] Avoid 
overflow and match error in ApproximatePercentile
URL: https://github.com/apache/spark/pull/26905#discussion_r358579502
 
 

 ##########
 File path: 
sql/core/src/test/scala/org/apache/spark/sql/ApproximatePercentileQuerySuite.scala
 ##########
 @@ -182,7 +182,7 @@ class ApproximatePercentileQuerySuite extends QueryTest 
with SharedSparkSession
         spark.sql(
           s"""SELECT
              |  key,
-             |  percentile_approx(null, 0.5)
+             |  percentile_approx(cast(null as int), 0.5)
 
 Review comment:
   Agreed. I'll updated this change in the PR description. And I guess the 
author's original purpose of these tests here are to verify the null handling 
of the non-null types, not `NullType`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to