cloud-fan commented on a change in pull request #28313:
URL: https://github.com/apache/spark/pull/28313#discussion_r414292509
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/DateFunctionsSuite.scala
##########
@@ -477,7 +477,7 @@ class DateFunctionsSuite extends QueryTest with
SharedSparkSession {
checkAnswer(
df.selectExpr("trunc(t, 'decade')"),
- Seq(Row(Date.valueOf("2010-01-01")), Row(Date.valueOf("2010-01-01"))))
+ Seq(Row(null), Row(null)))
Review comment:
can we create an individual test case for these unsupported fields? It's
a bit weird to see some null tests randomly.
----------------------------------------------------------------
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]