Github user yhuai commented on a diff in the pull request:
https://github.com/apache/spark/pull/999#discussion_r13834977
--- Diff: docs/sql-programming-guide.md ---
@@ -310,37 +325,190 @@ parquetFile = sqlCtx.parquetFile("people.parquet")
# Parquet files can also be registered as tables and then used in SQL
statements.
parquetFile.registerAsTable("parquetFile");
teenagers = sqlCtx.sql("SELECT name FROM parquetFile WHERE age >= 13 AND
age <= 19")
-
+teenNames = teenagers.map(lambda p: "Name: " + p.name)
+for teenName in teenNames.collect():
+ print teenName
{% endhighlight %}
</div>
</div>
-## Writing Language-Integrated Relational Queries
+## JSON Datasets
+<div class="codetabs">
+
+<div data-lang="scala" markdown="1">
+Spark SQL supports querying JSON datasets. To query a JSON dataset, a
SchemaRDD needs to be created for this JSON dataset. There are two ways to
create a SchemaRDD for a JSON dataset:
--- End diff --
How about we add the section on the rules of dealing schema inference in
the work on type system?
---
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 [email protected] or file a JIRA ticket
with INFRA.
---