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

Code documentation issue in DDL of datasource

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.2.0
    • Component/s: SQL
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: