Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-21721

nvl function fail with NullPointerException if the two paramtype are different

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: 1.1.0
    • Fix Version/s: None
    • Component/s: Parser

      Description

      Hi all

      when i user nvl and case when fucntion, it behaviors like the following.which is weird to me, and makes me headache everytime. i need to check where the nullpointexception throws out when it hadppens,So can the reasons more friendly to users,

      select nvl(cast('2019-05-10 11:11:11,111' as timestamp),'2019-05-10 11:11:11,111');
      Error: Error while compiling statement: FAILED: NullPointerException null (state=42000,code=40000)
      

        Attachments

        1. image-2019-05-11-10-41-05-168.png
          23 kB
          philipse
        2. image-2019-05-12-23-47-49-401.png
          13 kB
          philipse

          Issue Links

            Activity

              People

              • Assignee:
                小郭飞飞刀 philipse
                Reporter:
                小郭飞飞刀 philipse
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m