panbingkun commented on code in PR #48106:
URL: https://github.com/apache/spark/pull/48106#discussion_r1759678918


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicLogicalOperators.scala:
##########
@@ -992,12 +992,18 @@ object Range {
     castAndEval[Int](expression, IntegerType, paramIndex, paramName)
 }
 
+// scalastyle:off line.size.limit
 @ExpressionDescription(
   usage = """
-    _FUNC_(start: long, end: long, step: long, numSlices: integer)
-    _FUNC_(start: long, end: long, step: long)
-    _FUNC_(start: long, end: long)
-    _FUNC_(end: long)""",
+    _FUNC_(start[, end[, step[, numSlices]]]) / _FUNC_(end) - Returns a table 
of values within a specified range.

Review Comment:
   We have to make adjustments, otherwise `gen-sql-functions-docs.py` won't be 
able to recognize this non-traditional writing style.
   
   
https://github.com/apache/spark/blob/017b0ea71e03339336b5d199ecad4f50961e4948/sql/gen-sql-functions-docs.py#L129
   
   Traditional writing style:
   
https://github.com/apache/spark/blob/017b0ea71e03339336b5d199ecad4f50961e4948/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/misc.scala#L353-L359
   



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to