dongjoon-hyun commented on a change in pull request #26209: [SPARK-29554][SQL] 
Add `version` SQL function
URL: https://github.com/apache/spark/pull/26209#discussion_r339266526
 
 

 ##########
 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 or snapshot version and the second being a git 
revision.""",
+  since = """3.0.0""")
 
 Review comment:
   Ur, we don't need `"""` for `since`, do we? The following will be better.
   ```scala
   since = "3.0.0")
   ```

----------------------------------------------------------------
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]

Reply via email to