Skip to content

Commit b453716

Browse files
committed
move radn with seed down
1 parent 03637f0 commit b453716

File tree

1 file changed

+1
-1
lines changed
  • sql/hive/src/main/scala/org/apache/spark/sql/hive

1 file changed

+1
-1
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveQl.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1245,8 +1245,8 @@ https://cwiki.apache.org/confluence/display/Hive/Enhanced+Aggregation%2C+Cube%2C
12451245
/* Other functions */
12461246
case Token("TOK_FUNCTION", Token(ARRAY(), Nil) :: children) =>
12471247
CreateArray(children.map(nodeToExpr))
1248-
case Token("TOK_FUNCTION", Token(RAND(seed), Nil) :: Nil) => Rand(seed.toLong)
12491248
case Token("TOK_FUNCTION", Token(RAND(), Nil) :: Nil) => Rand(Utils.random.nextLong())
1249+
case Token("TOK_FUNCTION", Token(RAND(seed), Nil) :: Nil) => Rand(seed.toLong)
12501250
case Token("TOK_FUNCTION", Token(SUBSTR(), Nil) :: string :: pos :: Nil) =>
12511251
Substring(nodeToExpr(string), nodeToExpr(pos), Literal.create(Integer.MAX_VALUE, IntegerType))
12521252
case Token("TOK_FUNCTION", Token(SUBSTR(), Nil) :: string :: pos :: length :: Nil) =>

0 commit comments

Comments
 (0)