File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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
6466case class CurrentDate () extends LeafExpression with CodegenFallback {
6567
6668 override def foldable : Boolean = true
You can’t perform that action at this time.
0 commit comments