You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sun Rui (JIRA)" <ji...@apache.org> on 2015/07/08 14:20:04 UTC
[jira] [Created] (SPARK-8894) Example code errors in SparkR
documentation
Sun Rui created SPARK-8894:
------------------------------
Summary: 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org