GitHub user wangyum opened a pull request:

    https://github.com/apache/spark/pull/18206

    [SPARK-20754][SQL][FOLLOWUP] Add Function Alias For MOD/POSITION.

    ## What changes were proposed in this pull request?
    
    https://github.com/apache/spark/pull/18106 Support TRUNC (number),  We 
should also add function alias for `MOD `and `POSITION`.
    
    `POSITION(substr, str) `is a synonym for `LOCATE(substr,str)`. same as 
MySQL: 
https://dev.mysql.com/doc/refman/5.7/en/string-functions.html#function_position
    
    ## How was this patch tested?
    
    unit tests
    


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

    $ git pull https://github.com/wangyum/spark SPARK-20754-mod&position

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

    https://github.com/apache/spark/pull/18206.patch

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

    This closes #18206
    
----
commit 6168d3fd5a2a64c89d1f1896a1537cc6276a738c
Author: Yuming Wang <wgy...@gmail.com>
Date:   2017-06-05T16:16:56Z

    Add Function Alias For MOD/POSITION.

----


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