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

Use FunctionIdentifier as function identifiers in FunctionRegistry

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.3.0
    • SQL
    • None

    Description

      Currently, the unquoted string of a function identifier is being used as the function identifier in the function registry. This could cause the incorrect the behavior when users use `.` in the function names.

      As an example, Spark can resolve a function like this

      SELECT `d100.udf100`(`emp`.`name`) FROM `emp`;
      

      Although the function name is wrapped with backticks, Spark still resolves it as database name + function name, which is wrong.

      Attachments

        Issue Links

          Activity

            People

              smilegator Xiao Li
              smilegator Xiao Li
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: