Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15677#discussion_r85634799
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/stringExpressions.scala
 ---
    @@ -1263,10 +1516,20 @@ case class Encode(value: Expression, charset: 
Expression)
      * fractional part.
      */
     @ExpressionDescription(
    -  usage = """_FUNC_(X, D) - Formats the number X like '#,###,###.##', 
rounded to D decimal places.
    -    If D is 0, the result has no decimal point or fractional part.
    -    This is supposed to function like MySQL's FORMAT.""",
    -  extended = "> SELECT _FUNC_(12332.123456, 4);\n '12,332.1235'")
    +  usage = """
    +    _FUNC_(expr1, expr2) - Formats the number `expr1` like '#,###,###.##', 
rounded to `expr2`
    +      decimal places. If `expr2` is 0, the result has no decimal point or 
fractional part.
    +      This is supposed to function like MySQL's FORMAT.
    +  """,
    +  extended = """
    +    Arguments:
    +      expr1 - numeric type expression.
    +      expr2 - numeric type expression that defines the decimal places to 
round.
    --- End diff --
    
    `numeric type expression` -> `a numeric type expression`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to