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

    https://github.com/apache/spark/pull/15513#discussion_r85626558
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/misc.scala
 ---
    @@ -490,7 +521,15 @@ abstract class InterpretedHashFunction {
      * and bucketing have same data distribution.
      */
     @ExpressionDescription(
    -  usage = "_FUNC_(a1, a2, ...) - Returns a hash value of the arguments.")
    +  usage = "_FUNC_(expr1, expr2, ...) - Returns a hash value of the 
arguments.",
    +  extended = """
    +    Arguments:
    +      expr - an expression of any type.
    --- End diff --
    
    ```sql
    spark-sql> SELECT hash(struct(1));
    -559580957
    Time taken: 0.027 seconds, Fetched 1 row(s)
    spark-sql> SELECT hash(array(1));
    -559580957
    Time taken: 0.021 seconds, Fetched 1 row(s)
    spark-sql> SELECT hash(map(1, 1));
    245521047
    ```


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