tomvanbussel commented on a change in pull request #34670:
URL: https://github.com/apache/spark/pull/34670#discussion_r753523437



##########
File path: 
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/MathExpressionsSuite.scala
##########
@@ -760,4 +760,30 @@ class MathExpressionsSuite extends SparkFunSuite with 
ExpressionEvalHelper {
       checkEvaluation(WidthBucket(Literal(v), Literal(s), Literal(e), 
Literal(n)), expected)
     }
   }
+
+  test("SPARK-37388: width_bucket") {

Review comment:
       This test also tests other (edge) cases (normal inputs, NaN inputs, 
etc). There were no unit tests for `WidthBucket` with double inputs before, so 
I added some here.




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to