Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-8894

Example code errors in SparkR documentation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.0
    • 1.4.1, 1.5.0
    • Documentation, SparkR
    • None

    Description

      There are errors in SparkR related documentation.
      1. in https://spark.apache.org/docs/latest/sql-programming-guide.html#hive-tables, for R part,

      results = sqlContext.sql("FROM src SELECT key, value").collect()
      

      should be

      results <- collect(sql(sqlContext, "FROM src SELECT key, value"))
      

      2. in https://spark.apache.org/docs/latest/sparkr.html#from-hive-tables,

      results <- hiveContext.sql("FROM src SELECT key, value")
      

      should be

      results <- sql(hiveContext, "FROM src SELECT key, value")
      

      Attachments

        Activity

          People

            sunrui Sun Rui
            sunrui Sun Rui
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: