You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sr...@apache.org on 2016/04/11 10:03:16 UTC
spark git commit: [MINOR][DOCS] Fix wrong data types in JSON Datasets
example.
Repository: spark
Updated Branches:
refs/heads/master 9f838bd24 -> 1a0cca1fc
[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 <do...@apache.org>
Closes #12290 from dongjoon-hyun/minor_fix_type_in_json_example.
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/1a0cca1f
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/1a0cca1f
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/1a0cca1f
Branch: refs/heads/master
Commit: 1a0cca1fc81512d480ed0efc46114cb2b2189183
Parents: 9f838bd
Author: Dongjoon Hyun <do...@apache.org>
Authored: Mon Apr 11 09:03:11 2016 +0100
Committer: Sean Owen <so...@cloudera.com>
Committed: Mon Apr 11 09:03:11 2016 +0100
----------------------------------------------------------------------
docs/sql-programming-guide.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/spark/blob/1a0cca1f/docs/sql-programming-guide.md
----------------------------------------------------------------------
diff --git a/docs/sql-programming-guide.md b/docs/sql-programming-guide.md
index 63310be..2d9849d 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.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org