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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org