spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lix...@apache.org
Subject spark git commit: simplify rand in dsl/package.scala
Date Sat, 30 Jun 2018 06:53:15 GMT
Repository: spark
Updated Branches:
  refs/heads/branch-2.3 0f534d3da -> 8ff4b9727


simplify rand in dsl/package.scala

(cherry picked from commit d54d8b86301581142293341af25fd78b3278a2e8)
Signed-off-by: Xiao Li <gatorsmile@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/8ff4b972
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/8ff4b972
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/8ff4b972

Branch: refs/heads/branch-2.3
Commit: 8ff4b97274e58f5944506b25481c6eb44238a4cd
Parents: 0f534d3
Author: Xiao Li <gatorsmile@gmail.com>
Authored: Fri Jun 29 23:51:13 2018 -0700
Committer: Xiao Li <gatorsmile@gmail.com>
Committed: Fri Jun 29 23:53:00 2018 -0700

----------------------------------------------------------------------
 .../src/main/scala/org/apache/spark/sql/catalyst/dsl/package.scala  | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/8ff4b972/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/dsl/package.scala
----------------------------------------------------------------------
diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/dsl/package.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/dsl/package.scala
index efb2eba..89e8c99 100644
--- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/dsl/package.scala
+++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/dsl/package.scala
@@ -149,6 +149,7 @@ package object dsl {
       }
     }
 
+    def rand(e: Long): Expression = Rand(e)
     def sum(e: Expression): Expression = Sum(e).toAggregateExpression()
     def sumDistinct(e: Expression): Expression = Sum(e).toAggregateExpression(isDistinct
= true)
     def count(e: Expression): Expression = Count(e).toAggregateExpression()


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org


Mime
View raw message