You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Shivaram Venkataraman (JIRA)" <ji...@apache.org> on 2015/07/08 18:50:04 UTC

[jira] [Updated] (SPARK-8894) Example code errors in SparkR documentation

     [ https://issues.apache.org/jira/browse/SPARK-8894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shivaram Venkataraman updated SPARK-8894:
-----------------------------------------
    Assignee: Sun Rui

> Example code errors in SparkR documentation
> -------------------------------------------
>
>                 Key: SPARK-8894
>                 URL: https://issues.apache.org/jira/browse/SPARK-8894
>             Project: Spark
>          Issue Type: Bug
>          Components: Documentation, SparkR
>    Affects Versions: 1.4.0
>            Reporter: Sun Rui
>            Assignee: Sun Rui
>             Fix For: 1.4.2, 1.5.0
>
>
> There are errors in SparkR related documentation.
> 1. in https://spark.apache.org/docs/latest/sql-programming-guide.html#hive-tables, for R part, 
> {code}
> results = sqlContext.sql("FROM src SELECT key, value").collect()
> {code}
> should be
> {code}
> results <- collect(sql(sqlContext, "FROM src SELECT key, value"))
> {code}
> 2. in https://spark.apache.org/docs/latest/sparkr.html#from-hive-tables, 
> {code}
> results <- hiveContext.sql("FROM src SELECT key, value")
> {code}
> should be
> {code}
> results <- sql(hiveContext, "FROM src SELECT key, value")
> {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