Github user dongjoon-hyun commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13592#discussion_r67203021
  
    --- Diff: docs/sql-programming-guide.md ---
    @@ -956,30 +954,30 @@ file directly with SQL.
     <div data-lang="scala"  markdown="1">
     
     {% highlight scala %}
    -val df = sqlContext.sql("SELECT * FROM 
parquet.`examples/src/main/resources/users.parquet`")
    +val df = spark.sql("SELECT * FROM 
parquet.`examples/src/main/resources/users.parquet`")
     {% endhighlight %}
     
     </div>
     
     <div data-lang="java"  markdown="1">
     
     {% highlight java %}
    -DataFrame df = sqlContext.sql("SELECT * FROM 
parquet.`examples/src/main/resources/users.parquet`");
    +Dataset<Row> df = spark.sql("SELECT * FROM 
parquet.`examples/src/main/resources/users.parquet`");
     {% endhighlight %}
     </div>
     
     <div data-lang="python"  markdown="1">
     
     {% highlight python %}
    -df = sqlContext.sql("SELECT * FROM 
parquet.`examples/src/main/resources/users.parquet`")
    +df = spark.sql("SELECT * FROM 
parquet.`examples/src/main/resources/users.parquet`")
     {% endhighlight %}
     
     </div>
     
     <div data-lang="r"  markdown="1">
     
     {% highlight r %}
    -df <- sql(sqlContext, "SELECT * FROM 
parquet.`examples/src/main/resources/users.parquet`")
    +df <- sql(spark, "SELECT * FROM 
parquet.`examples/src/main/resources/users.parquet`")
    --- End diff --
    
    The same.
    ```
    df <- sql("SELECT * FROM 
parquet.`examples/src/main/resources/users.parquet`")
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to