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

UDF abs throws NPE when input arg type is string

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.0, 2.2.0
    • 2.3.0
    • UDF
    • None

    Description

      I know this is not the right use case, but NPE is not exptected.

      0: jdbc:hive2://10.64.35.144:21066/> select abs("foo");
      Error: Error while compiling statement: FAILED: NullPointerException null (state=42000,code=40000)
      

      Attachments

        1. HIVE-14658.1.patch
          1 kB
          Niklaus Xiao

        Activity

          People

            niklaus.xiao Niklaus Xiao
            niklaus.xiao Niklaus Xiao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: