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

Enhance describe framework to describe the output of a query

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.4.0
    • 3.0.0
    • SQL
    • None

    Description

      Currently we can use `df.printSchema` to discover the schema information for a query. We should have a way to describe the output schema of a query using SQL interface. 

       

      Example:

      DESCRIBE SELECT * FROM desc_table

      DESCRIBE QUERY SELECT * FROM desc_table

      Attachments

        Activity

          People

            dkbiswal Dilip Biswal
            dkbiswal Dilip Biswal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: