Skip to content

Commit 9a8e9bc

Browse files
committed
Update docs of CurrentDate
1 parent ae918cb commit 9a8e9bc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,17 @@ trait TimeZoneAwareExpression extends Expression {
5252
@transient lazy val zoneId: ZoneId = DateTimeUtils.getZoneId(timeZoneId.get)
5353
}
5454

55+
// scalastyle:off line.size.limit
5556
/**
56-
* Returns the current date at the start of query evaluation.
57+
* Returns the current date in the UTC time zone at the start of query evaluation.
5758
* All calls of current_date within the same query return the same value.
5859
*
5960
* There is no code generation since this expression should get constant folded by the optimizer.
6061
*/
6162
@ExpressionDescription(
62-
usage = "_FUNC_() - Returns the current date at the start of query evaluation.",
63+
usage = "_FUNC_() - Returns the current date in the UTC time zone at the start of query evaluation.",
6364
since = "1.5.0")
65+
// scalastyle:on line.size.limit
6466
case class CurrentDate() extends LeafExpression with CodegenFallback {
6567

6668
override def foldable: Boolean = true

0 commit comments

Comments
 (0)