Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-5180 Data source API improvement (Spark 1.5)
  3. SPARK-4574

Adding support for defining schema in foreign DDL commands.

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.1.0
    • 1.3.0
    • SQL
    • None
    • Spark 1.5 release

    Description

      Adding support for defining schema in foreign DDL commands. Now foreign DDL support commands like:

         CREATE TEMPORARY TABLE avroTable
         USING org.apache.spark.sql.avro
         OPTIONS (path "../hive/src/test/resources/data/files/episodes.avro")
      

      Let user can define schema instead of infer from file, so we can support ddl command as follows:

         CREATE TEMPORARY TABLE avroTable(a int, b string)
         USING org.apache.spark.sql.avro
         OPTIONS (path "../hive/src/test/resources/data/files/episodes.avro")
      

      Attachments

        Activity

          People

            scwf Fei Wang
            scwf Fei Wang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: