Skip to content

Commit

Permalink
add anotation
Browse files Browse the repository at this point in the history
  • Loading branch information
yaooqinn committed Oct 23, 2019
1 parent 40126cc commit dc4e6f1
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,17 @@ case class Uuid(randomSeed: Option[Long] = None) extends LeafExpression with Sta
override def freshCopy(): Uuid = Uuid(randomSeed)
}

// scalastyle:off line.size.limit
@ExpressionDescription(
usage =
"""_FUNC_() - Returns the Spark version. The string contains 2 fields, the first being a release or snapshot version and the second being a git revision.""".stripMargin,
examples = s"""
Examples:
> SELECT _FUNC_();
${SPARK_VERSION + " " + SPARK_REVISION}
""",
since = """3.0.0""")
// scalastyle:on line.size.limit
case class Version() extends LeafExpression with CodegenFallback {
override def nullable: Boolean = false

Expand Down

0 comments on commit dc4e6f1

Please sign in to comment.