aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDongjoon Hyun <dongjoon@apache.org>2016-04-11 09:03:11 +0100
committerSean Owen <sowen@cloudera.com>2016-04-11 09:03:11 +0100
commit1a0cca1fc81512d480ed0efc46114cb2b2189183 (patch)
tree1c73eabd19fff1d68383e3abbe8429043597badb /docs
parent9f838bd24242866a687a2655a1b8ac2f5d562526 (diff)
downloadspark-1a0cca1fc81512d480ed0efc46114cb2b2189183.tar.gz
spark-1a0cca1fc81512d480ed0efc46114cb2b2189183.tar.bz2
spark-1a0cca1fc81512d480ed0efc46114cb2b2189183.zip
[MINOR][DOCS] Fix wrong data types in JSON Datasets example.
## What changes were proposed in this pull request? This PR fixes the `age` data types from `integer` to `long` in `SQL Programming Guide: JSON Datasets`. ## How was this patch tested? Manual. Author: Dongjoon Hyun <dongjoon@apache.org> Closes #12290 from dongjoon-hyun/minor_fix_type_in_json_example.
Diffstat (limited to 'docs')
-rw-r--r--docs/sql-programming-guide.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/sql-programming-guide.md b/docs/sql-programming-guide.md
index 63310be22c..2d9849d032 100644
--- a/docs/sql-programming-guide.md
+++ b/docs/sql-programming-guide.md
@@ -1502,7 +1502,7 @@ val people = sqlContext.read.json(path)
// The inferred schema can be visualized using the printSchema() method.
people.printSchema()
// root
-// |-- age: integer (nullable = true)
+// |-- age: long (nullable = true)
// |-- name: string (nullable = true)
// Register this DataFrame as a table.
@@ -1540,7 +1540,7 @@ DataFrame people = sqlContext.read().json("examples/src/main/resources/people.js
// The inferred schema can be visualized using the printSchema() method.
people.printSchema();
// root
-// |-- age: integer (nullable = true)
+// |-- age: long (nullable = true)
// |-- name: string (nullable = true)
// Register this DataFrame as a table.
@@ -1578,7 +1578,7 @@ people = sqlContext.read.json("examples/src/main/resources/people.json")
# The inferred schema can be visualized using the printSchema() method.
people.printSchema()
# root
-# |-- age: integer (nullable = true)
+# |-- age: long (nullable = true)
# |-- name: string (nullable = true)
# Register this DataFrame as a table.
@@ -1617,7 +1617,7 @@ people <- jsonFile(sqlContext, path)
# The inferred schema can be visualized using the printSchema() method.
printSchema(people)
# root
-# |-- age: integer (nullable = true)
+# |-- age: long (nullable = true)
# |-- name: string (nullable = true)
# Register this DataFrame as a table.