flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-6893) Add BIN supported in SQL
Date Thu, 15 Jun 2017 06:34:01 GMT

    [ https://issues.apache.org/jira/browse/FLINK-6893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16050058#comment-16050058
] 

ASF GitHub Bot commented on FLINK-6893:
---------------------------------------

GitHub user sunjincheng121 opened a pull request:

    https://github.com/apache/flink/pull/4128

    [FLINK-6893][table]Add BIN supported in SQL

    In this PR. have Add BIN supported in SQL,e.g.:
    ```
    BIN(12) -> "1100"
    BIN(10)-> "1010"
    ```
    - [x] General
      - The pull request references the related JIRA issue ("[FLINK-6893][table]Add BIN supported
in SQL")
      - The pull request addresses only one issue
      - Each commit in the PR has a meaningful commit message (including the JIRA id)
    
    - [ ] Documentation
      - Documentation has been added for new functionality
      - Old documentation affected by the pull request has been updated
      - JavaDoc for public methods has been added
    
    - [x] Tests & Build
      - Functionality added by the pull request is covered by tests
      - `mvn clean verify` has been executed successfully locally or a Travis build has passed


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

    $ git pull https://github.com/sunjincheng121/flink FLINK-6893-PR

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

    https://github.com/apache/flink/pull/4128.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 #4128
    
----
commit 410ab83a6c7e9e6c5346299ad8e694f918333536
Author: sunjincheng121 <sunjincheng121@gmail.com>
Date:   2017-06-15T06:30:25Z

    [FLINK-6893][table]Add BIN supported in SQL

----


> Add BIN supported in SQL
> ------------------------
>
>                 Key: FLINK-6893
>                 URL: https://issues.apache.org/jira/browse/FLINK-6893
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Table API & SQL
>    Affects Versions: 1.4.0
>            Reporter: sunjincheng
>
> BIN(N) Returns a string representation of the binary value of N, where N is a longlong
(BIGINT) number. This is equivalent to CONV(N,10,2). Returns NULL if N is NULL.
> * Syntax:
> BIN(num)
> * Arguments
> **num: a long/bigint value
> * Return Types
>   String
> * Example:
>   BIN(12) -> '1100'
> * See more:
> ** [MySQL| https://dev.mysql.com/doc/refman/5.7/en/string-functions.html#function_bin]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message