[
https://issues.apache.org/jira/browse/SPARK-4658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Armbrust resolved SPARK-4658.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.2.0
Issue resolved by pull request 3516
[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
> Fix For: 1.2.0
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]