Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 0.9.0
    • Fix Version/s: 0.10.0
    • Component/s: Function/UDF
    • Labels:
      None

      Description

      See the following test query. This is expected "1997-12-30 11:40:00", but "1997-12-30 11:40:-00"

      select to_char(to_timestamp('1997-12-30 11:40:00', 'YYYY-MM-DD HH24:MI:SS'), 'YYYY-MM-DD HH24:MI:SS')
      

        Activity

        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Tajo-master-CODEGEN-build #85 (See https://builds.apache.org/job/Tajo-master-CODEGEN-build/85/)
        TAJO-1162: to_char() returns "-00" second. (babokim: rev f45e74f6efd1175c4eb97dbbcd38c702e29031a0)

        • tajo-common/src/main/java/org/apache/tajo/util/datetime/DateTimeFormat.java
        • tajo-core/src/test/java/org/apache/tajo/engine/function/TestDateTimeFunctions.java
        • CHANGES
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Tajo-master-CODEGEN-build #85 (See https://builds.apache.org/job/Tajo-master-CODEGEN-build/85/ ) TAJO-1162 : to_char() returns "-00" second. (babokim: rev f45e74f6efd1175c4eb97dbbcd38c702e29031a0) tajo-common/src/main/java/org/apache/tajo/util/datetime/DateTimeFormat.java tajo-core/src/test/java/org/apache/tajo/engine/function/TestDateTimeFunctions.java CHANGES
        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Tajo-master-build #443 (See https://builds.apache.org/job/Tajo-master-build/443/)
        TAJO-1162: to_char() returns "-00" second. (babokim: rev f45e74f6efd1175c4eb97dbbcd38c702e29031a0)

        • tajo-core/src/test/java/org/apache/tajo/engine/function/TestDateTimeFunctions.java
        • tajo-common/src/main/java/org/apache/tajo/util/datetime/DateTimeFormat.java
        • CHANGES
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Tajo-master-build #443 (See https://builds.apache.org/job/Tajo-master-build/443/ ) TAJO-1162 : to_char() returns "-00" second. (babokim: rev f45e74f6efd1175c4eb97dbbcd38c702e29031a0) tajo-core/src/test/java/org/apache/tajo/engine/function/TestDateTimeFunctions.java tajo-common/src/main/java/org/apache/tajo/util/datetime/DateTimeFormat.java CHANGES
        Hide
        githubbot ASF GitHub Bot added a comment -

        Github user asfgit closed the pull request at:

        https://github.com/apache/tajo/pull/234

        Show
        githubbot ASF GitHub Bot added a comment - Github user asfgit closed the pull request at: https://github.com/apache/tajo/pull/234
        Hide
        githubbot ASF GitHub Bot added a comment -

        Github user babokim commented on the pull request:

        https://github.com/apache/tajo/pull/234#issuecomment-62488260

        I had just committed.

        Show
        githubbot ASF GitHub Bot added a comment - Github user babokim commented on the pull request: https://github.com/apache/tajo/pull/234#issuecomment-62488260 I had just committed.
        Hide
        githubbot ASF GitHub Bot added a comment -

        Github user hyunsik commented on the pull request:

        https://github.com/apache/tajo/pull/234#issuecomment-62481009

        +1
        The fix looks straightforward and the unit tests are enough to valid the fix.

        Show
        githubbot ASF GitHub Bot added a comment - Github user hyunsik commented on the pull request: https://github.com/apache/tajo/pull/234#issuecomment-62481009 +1 The fix looks straightforward and the unit tests are enough to valid the fix.
        Hide
        githubbot ASF GitHub Bot added a comment -

        GitHub user babokim opened a pull request:

        https://github.com/apache/tajo/pull/234

        TAJO-1162: to_char() returns "-00" second.

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

        $ git pull https://github.com/babokim/tajo TAJO-1162

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

        https://github.com/apache/tajo/pull/234.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 #234


        commit d0852f41d42fd2830af219f3ece98269028c89b4
        Author: HyoungJun Kim <babokim@babokim-mbp.server.gruter.com>
        Date: 2014-11-10T09:59:22Z

        TAJO-1162: to_char() returns "-00" second.

        commit 5a0005943233a83432aedd67cc6ad3aa5f9a6d33
        Author: HyoungJun Kim <babokim@babokim-mbp.server.gruter.com>
        Date: 2014-11-10T10:00:27Z

        Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/tajo


        Show
        githubbot ASF GitHub Bot added a comment - GitHub user babokim opened a pull request: https://github.com/apache/tajo/pull/234 TAJO-1162 : to_char() returns "-00" second. You can merge this pull request into a Git repository by running: $ git pull https://github.com/babokim/tajo TAJO-1162 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/tajo/pull/234.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 #234 commit d0852f41d42fd2830af219f3ece98269028c89b4 Author: HyoungJun Kim <babokim@babokim-mbp.server.gruter.com> Date: 2014-11-10T09:59:22Z TAJO-1162 : to_char() returns "-00" second. commit 5a0005943233a83432aedd67cc6ad3aa5f9a6d33 Author: HyoungJun Kim <babokim@babokim-mbp.server.gruter.com> Date: 2014-11-10T10:00:27Z Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/tajo

          People

          • Assignee:
            hjkim Hyoungjun Kim
            Reporter:
            hjkim Hyoungjun Kim
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development