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

    https://github.com/apache/spark/pull/15513#discussion_r84591475
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLSuite.scala 
---
    @@ -1455,50 +1455,59 @@ class DDLSuite extends QueryTest with 
SharedSQLContext with BeforeAndAfterEach {
           sql("DESCRIBE FUNCTION log"),
           Row("Class: org.apache.spark.sql.catalyst.expressions.Logarithm") ::
             Row("Function: log") ::
    -        Row("Usage: log(b, x) - Returns the logarithm of x with base b.") 
:: Nil
    +        Row("Usage: log(base, expr) - Returns the logarithm of expr with 
base.") :: Nil
         )
         // predicate operator
         checkAnswer(
           sql("DESCRIBE FUNCTION or"),
           Row("Class: org.apache.spark.sql.catalyst.expressions.Or") ::
             Row("Function: or") ::
    -        Row("Usage: a or b - Logical OR.") :: Nil
    +        Row("Usage: expr1 or expr2 - Logical OR.") :: Nil
         )
         checkAnswer(
           sql("DESCRIBE FUNCTION !"),
           Row("Class: org.apache.spark.sql.catalyst.expressions.Not") ::
             Row("Function: !") ::
    -        Row("Usage: ! a - Logical not") :: Nil
    +        Row("Usage: ! expr - Logical not.") :: Nil
         )
         // arithmetic operators
         checkAnswer(
           sql("DESCRIBE FUNCTION +"),
           Row("Class: org.apache.spark.sql.catalyst.expressions.Add") ::
             Row("Function: +") ::
    -        Row("Usage: a + b - Returns a+b.") :: Nil
    +        Row("Usage: expr1 + expr2 - Returns expr1+expr2.") :: Nil
         )
         // comparison operators
         checkAnswer(
           sql("DESCRIBE FUNCTION <"),
           Row("Class: org.apache.spark.sql.catalyst.expressions.LessThan") ::
             Row("Function: <") ::
    -        Row("Usage: a < b - Returns TRUE if a is less than b.") :: Nil
    +        Row("Usage: expr1 < expr2 - Returns TRUE if expr1 is less than 
expr2.") :: Nil
         )
         // STRING
         checkAnswer(
           sql("DESCRIBE FUNCTION 'concat'"),
           Row("Class: org.apache.spark.sql.catalyst.expressions.Concat") ::
             Row("Function: concat") ::
             Row("Usage: concat(str1, str2, ..., strN) " +
    -          "- Returns the concatenation of str1, str2, ..., strN") :: Nil
    +          "- Returns the concatenation of str1, str2, ..., strN.") :: Nil
         )
         // extended mode
         checkAnswer(
           sql("DESCRIBE FUNCTION EXTENDED ^"),
           Row("Class: org.apache.spark.sql.catalyst.expressions.BitwiseXor") ::
    -        Row("Extended Usage:\n> SELECT 3 ^ 5; 2") ::
    +        Row(
    +          """Extended Usage:
    +            |    Arguments:
    +            |      expr1 - a integral numeric expression.
    --- End diff --
    
    I will sweep it the same instances!


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to