Repository: spark
Updated Branches:
  refs/heads/branch-1.4 2805d145e -> 0ffbf0851


fix read/write mixup

Author: Peter Hoffmann <[email protected]>

Closes #6815 from hoffmann/patch-1 and squashes the following commits:

2abb6da [Peter Hoffmann] fix read/write mixup

(cherry picked from commit f3f2a4397da164f0ddfa5d60bf441099296c4346)
Signed-off-by: Reynold Xin <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/0ffbf085
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/0ffbf085
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/0ffbf085

Branch: refs/heads/branch-1.4
Commit: 0ffbf085190b9d4dc13a8b6545e4e1022083bd35
Parents: 2805d14
Author: Peter Hoffmann <[email protected]>
Authored: Sun Jun 14 11:41:16 2015 -0700
Committer: Reynold Xin <[email protected]>
Committed: Sun Jun 14 11:41:50 2015 -0700

----------------------------------------------------------------------
 docs/sql-programming-guide.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/0ffbf085/docs/sql-programming-guide.md
----------------------------------------------------------------------
diff --git a/docs/sql-programming-guide.md b/docs/sql-programming-guide.md
index 17f2954..aedfe52 100644
--- a/docs/sql-programming-guide.md
+++ b/docs/sql-programming-guide.md
@@ -995,11 +995,11 @@ List<String> teenagerNames = teenagers.javaRDD().map(new 
Function<Row, String>()
 schemaPeople # The DataFrame from the previous example.
 
 # DataFrames can be saved as Parquet files, maintaining the schema information.
-schemaPeople.read.parquet("people.parquet")
+schemaPeople.write.parquet("people.parquet")
 
 # Read in the Parquet file created above.  Parquet files are self-describing 
so the schema is preserved.
 # The result of loading a parquet file is also a DataFrame.
-parquetFile = sqlContext.write.parquet("people.parquet")
+parquetFile = sqlContext.read.parquet("people.parquet")
 
 # Parquet files can also be registered as tables and then used in SQL 
statements.
 parquetFile.registerTempTable("parquetFile");


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to