Skip to content

Commit

Permalink
simplify rand in dsl/package.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
gatorsmile committed Jun 30, 2018
1 parent 797971e commit d54d8b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ package object dsl {
}
}

def rand(e: Long): Expression = Rand(Literal.create(e, LongType))
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()
Expand Down

0 comments on commit d54d8b8

Please sign in to comment.