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

Code documentation issue in DDL of datasource

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.2.0
    • 1.2.0
    • SQL
    • None

    Description

      The syntax mentioned to create table for datasource in ddl.scala file is documented with wrong syntax like

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

      but the correct syntax is

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

      Wrong syntax is documented in newParquet.scala like

      `CREATE TABLE ... USING org.apache.spark.sql.parquet`.  
      

      but the correct syntax is

      `CREATE TEMPORARY TABLE ... USING org.apache.spark.sql.parquet`.
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            ravi.pesala Ravindra Pesala
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: