Skip to content

Commit 7216511

Browse files
committed
Fix
1 parent 079b362 commit 7216511

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/randomExpressions.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ case class Rand(child: Expression) extends RDG with ExpressionWithRandomSeed {
102102
}
103103

104104
override def freshCopy(): Rand = Rand(child)
105+
106+
override def sql: String = "rand()"
105107
}
106108

107109
object Rand {
@@ -145,6 +147,8 @@ case class Randn(child: Expression) extends RDG with ExpressionWithRandomSeed {
145147
}
146148

147149
override def freshCopy(): Randn = Randn(child)
150+
151+
override def sql: String = "randn()"
148152
}
149153

150154
object Randn {

0 commit comments

Comments
 (0)