[
https://issues.apache.org/jira/browse/SPARK-8894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14618508#comment-14618508
]
Apache Spark commented on SPARK-8894:
-------------------------------------
User 'sun-rui' has created a pull request for this issue:
https://github.com/apache/spark/pull/7287
> 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
>
> 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: [email protected]
For additional commands, e-mail: [email protected]