cloud-fan commented on code in PR #46120:
URL: https://github.com/apache/spark/pull/46120#discussion_r1572478404
##########
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/ExpressionTypeCheckingSuite.scala:
##########
@@ -811,4 +811,10 @@ class ExpressionTypeCheckingSuite extends SparkFunSuite
with SQLHelper with Quer
"This should have been converted during analysis."))
)
}
+
+ test("check that current time is foldable") {
+ val rnd =
+ Rand(Cast(UnixTimestamp(CurrentDate(), Literal("yyyy-MM-dd HH:mm:ss")),
IntegerType))
Review Comment:
int: we can simply do `Month(CurrentDate())` to turn date into int.
--
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]