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

nvl function fail with NullPointerException if the two paramtype are different

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • 1.1.0
    • None
    • 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

              小郭飞飞刀 philipse
              小郭飞飞刀 philipse
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

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