GitHub user 10110346 opened a pull request:

    [SPARK-20403][SQL][Documentation]Modify the instructions of some functions, 
and add  instructions of  'cast'  function

    ## What changes were proposed in this pull request?
    1.  ‘’hashSet‘ and ‘hashMap‘ are mutable,so,using 'val' will be 
    2.          modify annotation:HALF_UP -> HALF_EVEN 
    3.    add  instructions of  'cast'  function When using 'show functions'  
and 'desc function cast'
           command in spark-sql
    4.    Modify the  instructions of functions,such as
    ## How was this patch tested?
    Before modification:
    spark-sql>desc function boolean;
    Function: boolean
    Class: org.apache.spark.sql.catalyst.expressions.Cast
    Usage: boolean(expr AS type) - Casts the value `expr` to the target data 
type `type`.
    After modification:
    spark-sql> desc function boolean;
    Function: boolean
    Class: org.apache.spark.sql.catalyst.expressions.CastAlias
    Usage: boolean(expr) - Casts the value `expr` to the target data type 
    spark-sql> desc function cast
    Function: cast
    Class: org.apache.spark.sql.catalyst.expressions.Cast
    Usage: cast(expr AS type) - Casts the value `expr` to the target data type 

You can merge this pull request into a Git repository by running:

    $ git pull wip_lx_0418

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #17698
commit 11ca517e75d0ce800037557b180fdabb81c9e554
Author: liuxian <>
Date:   2017-04-18T11:53:45Z

    hashSet and hashMap are mutable,so,using val will be better
    Signed-off-by: liuxian <>

commit c3dcefa02c36de8d6055e7166379391b01337cda
Author: liuxian <>
Date:   2017-04-18T12:07:50Z

    modify annotation:HALF_UP -> HALF_EVEN
    Signed-off-by: liuxian <>

commit c56507c3b99744d64d539dd105e5615abaf6a917
Author: liuxian <>
Date:   2017-04-20T02:56:30Z

    add 'cast' function When using 'show functions'  and 'desc function cast'
    command in spark-sql
    Signed-off-by: liuxian <>

commit 62a29bf16c359dac040c2e089c4bcfae417ed2e9
Author: liuxian <>
Date:   2017-04-20T03:05:53Z

    Modify the usage of functions,such as
    Signed-off-by: liuxian <>


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

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to