gatorsmile commented on a change in pull request #26209: [SPARK-29554][SQL] Add
`version` SQL function
URL: https://github.com/apache/spark/pull/26209#discussion_r349854337
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/misc.scala
##########
@@ -164,3 +163,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 version and the second being a git
revision.""",
+ since = "3.0.0")
+// scalastyle:on line.size.limit
+case class Version() extends LeafExpression with CodegenFallback {
Review comment:
Could we change the class name to `SparkVersion()`? `Version()` is too
general as a class name.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]