You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Ravindra Pesala (JIRA)" <ji...@apache.org> on 2014/11/30 04:49:12 UTC
[jira] [Created] (SPARK-4658) Code documentation issue in DDL of
datasource
Ravindra Pesala created SPARK-4658:
--------------------------------------
Summary: 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