cloud-fan commented on a change in pull request #30923:
URL: https://github.com/apache/spark/pull/30923#discussion_r549608575
##########
File path:
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/AnalysisErrorSuite.scala
##########
@@ -700,4 +700,12 @@ class AnalysisErrorSuite extends AnalysisTest {
UnresolvedRelation(TableIdentifier("t", Option("nonexist")))))))
assertAnalysisError(plan, "Table or view not found:" :: Nil)
}
+
+ test("SPARK-33909: Check rand functions seed is legal at analyer side") {
+ Seq(Rand("a".attr), Randn("a".attr)).foreach { r =>
Review comment:
can we also test with a string constant to make sure the type check
applies?
----------------------------------------------------------------
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]