spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From HyukjinKwon <...@git.apache.org>
Subject [GitHub] spark pull request #15513: [SPARK-17963][SQL][Documentation] Add examples (e...
Date Sat, 29 Oct 2016 00:30:30 GMT
Github user HyukjinKwon commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15513#discussion_r85626234
  
    --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/misc.scala
---
    @@ -631,7 +682,11 @@ case class CurrentDatabase() extends LeafExpression with Unevaluable
{
      * TODO: Support Decimal and date related types
      */
     @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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


Mime
View raw message