Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: 0.8.0
    • Component/s: Function/UDF
    • Labels:
      None

      Description

      to_bin( n ) - returns n in binary

      Example:
      SELECT to_bin(22) FROM src LIMIT 1;
      -> result: '10110'

      1. TAJO-384.patch
        5 kB
        Jae Young Lee

        Activity

        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Tajo-trunk-postcommit #610 (See https://builds.apache.org/job/Tajo-trunk-postcommit/610/)
        TAJO-384: to_bin(). (Jae Young Lee via jaehwa) (jhjung: https://git-wip-us.apache.org/repos/asf?p=incubator-tajo.git&a=commit&h=551faa514cfb58b3174829c0f318a760b8d0d69d)

        • tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/engine/function/TestStringOperatorsAndFunctions.java
        • tajo-core/tajo-core-backend/src/main/java/org/apache/tajo/engine/function/string/ToBin.java
        • CHANGES.txt
        • tajo-core/tajo-core-backend/src/main/java/org/apache/tajo/master/TajoMaster.java
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Tajo-trunk-postcommit #610 (See https://builds.apache.org/job/Tajo-trunk-postcommit/610/ ) TAJO-384 : to_bin(). (Jae Young Lee via jaehwa) (jhjung: https://git-wip-us.apache.org/repos/asf?p=incubator-tajo.git&a=commit&h=551faa514cfb58b3174829c0f318a760b8d0d69d ) tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/engine/function/TestStringOperatorsAndFunctions.java tajo-core/tajo-core-backend/src/main/java/org/apache/tajo/engine/function/string/ToBin.java CHANGES.txt tajo-core/tajo-core-backend/src/main/java/org/apache/tajo/master/TajoMaster.java
        Hide
        blrunner Jaehwa Jung added a comment -

        +1.

        Thank you for your contribution.
        'mvn clean install' passed.
        I've just committed now.

        Show
        blrunner Jaehwa Jung added a comment - +1. Thank you for your contribution. 'mvn clean install' passed. I've just committed now.
        Hide
        sirpkt Keuntae Park added a comment -

        It looks good to me.
        'mvn clean install' finished successfully.

        I fixed the function name in the description as defined in the patch

        Show
        sirpkt Keuntae Park added a comment - It looks good to me. 'mvn clean install' finished successfully. I fixed the function name in the description as defined in the patch
        Hide
        goodljy Jae Young Lee added a comment -

        I've implemented this issue.
        Please review it.

        Show
        goodljy Jae Young Lee added a comment - I've implemented this issue. Please review it.

          People

          • Assignee:
            goodljy Jae Young Lee
            Reporter:
            goodljy Jae Young Lee
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development