Uploaded image for project: 'Tajo'
  1. Tajo
  2. TAJO-442

Cast operator with nested functions causes NPE

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.8.0
    • Component/s: Expression
    • Labels:
      None

      Description

      The following code reproduces the error case.

      select to_timestamp(CAST(split_part('1386577650.123', '.', 1) as INT8));
      
      1. TAJO-442.patch
        3 kB
        Hyunsik Choi

        Activity

        Hide
        hyunsik Hyunsik Choi added a comment -

        I've uploaded the bug fix.

        Show
        hyunsik Hyunsik Choi added a comment - I've uploaded the bug fix.
        Hide
        prafulla Prafulla T added a comment -

        +1
        This looks pretty straightforward.

        Show
        prafulla Prafulla T added a comment - +1 This looks pretty straightforward.
        Hide
        jhkim Jinho Kim added a comment -

        +1
        Looks great for me. I've verified 'mvn clean install'.

        Show
        jhkim Jinho Kim added a comment - +1 Looks great for me. I've verified 'mvn clean install'.
        Hide
        hyunsik Hyunsik Choi added a comment -

        I've committed it to master branch. Thank you guys for the review.

        Show
        hyunsik Hyunsik Choi added a comment - I've committed it to master branch. Thank you guys for the review.
        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Tajo-trunk-postcommit #630 (See https://builds.apache.org/job/Tajo-trunk-postcommit/630/)
        TAJO-442: Cast operator with nested functions causes NPE. (hyunsik) (hyunsik: https://git-wip-us.apache.org/repos/asf?p=incubator-tajo.git&a=commit&h=450fbcb93c02c74fd8889751bdec5ce155e3e294)

        • tajo-core/tajo-core-backend/src/main/java/org/apache/tajo/engine/eval/CastEval.java
        • CHANGES.txt
        • tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/engine/function/TestStringOperatorsAndFunctions.java
        • tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/engine/eval/TestSQLExpression.java
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Tajo-trunk-postcommit #630 (See https://builds.apache.org/job/Tajo-trunk-postcommit/630/ ) TAJO-442 : Cast operator with nested functions causes NPE. (hyunsik) (hyunsik: https://git-wip-us.apache.org/repos/asf?p=incubator-tajo.git&a=commit&h=450fbcb93c02c74fd8889751bdec5ce155e3e294 ) tajo-core/tajo-core-backend/src/main/java/org/apache/tajo/engine/eval/CastEval.java CHANGES.txt tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/engine/function/TestStringOperatorsAndFunctions.java tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/engine/eval/TestSQLExpression.java

          People

          • Assignee:
            hyunsik Hyunsik Choi
            Reporter:
            hyunsik Hyunsik Choi
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development