Details

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

      Description

      float8 sign(float8)

      if value is greater than 0 return 1.0
      if value is equals to 0 return 0.0
      if value is less than 0 return -1.0

      1. TAJO-397.patch
        6 kB
        DaeMyung Kang

        Activity

        Hide
        charsyam DaeMyung Kang added a comment -

        please review this.

        Show
        charsyam DaeMyung Kang added a comment - please review this.
        Hide
        hyunsik Hyunsik Choi added a comment -

        +1

        Show
        hyunsik Hyunsik Choi added a comment - +1
        Hide
        hyunsik Hyunsik Choi added a comment -

        committed it to master. thanks!

        Show
        hyunsik Hyunsik Choi added a comment - committed it to master. thanks!
        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Tajo-trunk-postcommit #599 (See https://builds.apache.org/job/Tajo-trunk-postcommit/599/)
        TAJO-397: Implement sign function. (DaeMyung Kang via hyunsik) (hyunsik: https://git-wip-us.apache.org/repos/asf?p=incubator-tajo.git&a=commit&h=3a05bbf3d0cbe83e5302dcbeeeb53b63940917b2)

        • tajo-core/tajo-core-backend/src/main/java/org/apache/tajo/master/TajoMaster.java
        • CHANGES.txt
        • tajo-core/tajo-core-backend/src/main/java/org/apache/tajo/engine/function/math/Sign.java
        • tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/engine/function/TestMathFunctions.java
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Tajo-trunk-postcommit #599 (See https://builds.apache.org/job/Tajo-trunk-postcommit/599/ ) TAJO-397 : Implement sign function. (DaeMyung Kang via hyunsik) (hyunsik: https://git-wip-us.apache.org/repos/asf?p=incubator-tajo.git&a=commit&h=3a05bbf3d0cbe83e5302dcbeeeb53b63940917b2 ) tajo-core/tajo-core-backend/src/main/java/org/apache/tajo/master/TajoMaster.java CHANGES.txt tajo-core/tajo-core-backend/src/main/java/org/apache/tajo/engine/function/math/Sign.java tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/engine/function/TestMathFunctions.java

          People

          • Assignee:
            charsyam DaeMyung Kang
            Reporter:
            charsyam DaeMyung Kang
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development