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

Add table function registry

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.0
    • 3.2.0
    • SQL
    • None

    Description

      Currently, Spark resolves table-valued functions, for example, range, very differently from non-table valued functions. Also, there is no information displayed for table-valued functions. For example:

      scala> sql("describe function range").show(false)
      +--------------------------+
      |function_desc             |
      +--------------------------+
      |Function: range not found.|
      +--------------------------+
      

      To make the behavior consistent, we can add a table function registry and resolve the table-valued function from the catalog.

      This also allows Spark to have more built-in table-valued functions in the future.

      Attachments

        Activity

          People

            allisonwang-db Allison Wang
            allisonwang-db Allison Wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: