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

Use FunctionIdentifier as function identifiers in FunctionRegistry

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Component/s: SQL
    • Labels:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: