Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-21318

The exception message thrown by `lookupFunction` is ambiguous.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.0, 2.0.1, 2.0.2, 2.1.0, 2.1.1
    • 2.4.0
    • SQL
    • None

    Description

      The function actually exists in current selected database, but the exception message is:

      This function is neither a registered temporary function nor a permanent function registered in the database 'default'.
      

      My UDF has already been registered in the current database. But it's failed to init during lookupFunction.

      The exception message should be:

      No handler for Hive UDF 'site.stanzhai.UDAFXXX': org.apache.hadoop.hive.ql.exec.UDFArgumentLengthException: Two arguments is expected
      

      This is not conducive to positioning problems.

      Attachments

        Activity

          People

            stanzhai StanZhai
            stanzhai StanZhai
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: