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

New built-in SQL function - Data_Type

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 2.1.1
    • None
    • PySpark, SparkR, SQL
    • None

    Description

      This function returns the data type of a given column.

      data_type("a")
      // returns string
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mmolimar Mario Molina
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: