You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2014/11/30 04:55:12 UTC

[jira] [Commented] (SPARK-4658) Code documentation issue in DDL of datasource

    [ https://issues.apache.org/jira/browse/SPARK-4658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14229005#comment-14229005 ] 

Apache Spark commented on SPARK-4658:
-------------------------------------

User 'ravipesala' has created a pull request for this issue:
https://github.com/apache/spark/pull/3516

> Code documentation issue in DDL of datasource
> ---------------------------------------------
>
>                 Key: SPARK-4658
>                 URL: https://issues.apache.org/jira/browse/SPARK-4658
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.2.0
>            Reporter: Ravindra Pesala
>            Priority: Minor
>
> The syntax mentioned to create table for datasource in ddl.scala file is documented with wrong syntax like
> {code}
>   /**
>    * CREATE FOREIGN TEMPORARY TABLE avroTable
>    * USING org.apache.spark.sql.avro
>    * OPTIONS (path "../hive/src/test/resources/data/files/episodes.avro")
>    */
> {code}
> but the correct syntax is 
> {code}
>  /**
>    * CREATE TEMPORARY TABLE avroTable
>    * USING org.apache.spark.sql.avro
>    * OPTIONS (path "../hive/src/test/resources/data/files/episodes.avro")
>    */
> {code}
> Wrong syntax is documented in newParquet.scala like
> {code}
> `CREATE TABLE ... USING org.apache.spark.sql.parquet`.  
> {code} 
>  but the correct syntax is 
> {code}
> `CREATE TEMPORARY TABLE ... USING org.apache.spark.sql.parquet`.
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org