GitHub user kiszk opened a pull request:

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

    [SPARK-20746][SQL] Built-in SQL Function Support - all variants of LEN[GTH]

    ## What changes were proposed in this pull request?
    
    This PR adds built-in SQL function `BIT_LENGTH()`, `CHAR_LENGTH()`, and 
`OCTET_LENGTH()` functions.
    
    `BIT_LENGTH()` returns the bit length of the given string or binary 
expression.
    `CHAR_LENGTH()` returns the length of the given string or binary 
expression. (i.e. equal to `LENGTH()`)
    `OCTET_LENGTH()` returns the byte length of the given string or binary 
expression.
    
    ## How was this patch tested?
    
    Added new test suites for these three functions

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

    $ git pull https://github.com/kiszk/spark SPARK-20749

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

    https://github.com/apache/spark/pull/18046.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 #18046
    
----
commit 82ef30599844a098c3059cca480bbd1b709652c8
Author: Kazuaki Ishizaki <[email protected]>
Date:   2017-05-20T23:08:36Z

    initial commit

----


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