Repository: spark
Updated Branches:
  refs/heads/master a4491626e -> 8129d59d0


[MINOR][DOCS] Fix typo in Hive Examples

## What changes were proposed in this pull request?

Fix typo in hive examples from "DaraFrames" to "DataFrames"

## How was this patch tested?

N/A

Please review http://spark.apache.org/contributing.html before opening a pull 
request.

Author: Dustin Koupal <[email protected]>

Closes #17554 from cooper6581/typo-daraframes.


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

Branch: refs/heads/master
Commit: 8129d59d0e389fa8074958f1b90f7539e3e79bb7
Parents: a449162
Author: Dustin Koupal <[email protected]>
Authored: Thu Apr 6 16:56:36 2017 -0700
Committer: Reynold Xin <[email protected]>
Committed: Thu Apr 6 16:56:36 2017 -0700

----------------------------------------------------------------------
 .../org/apache/spark/examples/sql/hive/JavaSparkHiveExample.java   | 2 +-
 examples/src/main/python/sql/hive.py                               | 2 +-
 .../org/apache/spark/examples/sql/hive/SparkHiveExample.scala      | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/8129d59d/examples/src/main/java/org/apache/spark/examples/sql/hive/JavaSparkHiveExample.java
----------------------------------------------------------------------
diff --git 
a/examples/src/main/java/org/apache/spark/examples/sql/hive/JavaSparkHiveExample.java
 
b/examples/src/main/java/org/apache/spark/examples/sql/hive/JavaSparkHiveExample.java
index 4763856..575a463 100644
--- 
a/examples/src/main/java/org/apache/spark/examples/sql/hive/JavaSparkHiveExample.java
+++ 
b/examples/src/main/java/org/apache/spark/examples/sql/hive/JavaSparkHiveExample.java
@@ -89,7 +89,7 @@ public class JavaSparkHiveExample {
     // The results of SQL queries are themselves DataFrames and support all 
normal functions.
     Dataset<Row> sqlDF = spark.sql("SELECT key, value FROM src WHERE key < 10 
ORDER BY key");
 
-    // The items in DaraFrames are of type Row, which lets you to access each 
column by ordinal.
+    // The items in DataFrames are of type Row, which lets you to access each 
column by ordinal.
     Dataset<String> stringsDS = sqlDF.map(
         (MapFunction<Row, String>) row -> "Key: " + row.get(0) + ", Value: " + 
row.get(1),
         Encoders.STRING());

http://git-wip-us.apache.org/repos/asf/spark/blob/8129d59d/examples/src/main/python/sql/hive.py
----------------------------------------------------------------------
diff --git a/examples/src/main/python/sql/hive.py 
b/examples/src/main/python/sql/hive.py
index 1f175d7..1f83a6f 100644
--- a/examples/src/main/python/sql/hive.py
+++ b/examples/src/main/python/sql/hive.py
@@ -68,7 +68,7 @@ if __name__ == "__main__":
     # The results of SQL queries are themselves DataFrames and support all 
normal functions.
     sqlDF = spark.sql("SELECT key, value FROM src WHERE key < 10 ORDER BY key")
 
-    # The items in DaraFrames are of type Row, which allows you to access each 
column by ordinal.
+    # The items in DataFrames are of type Row, which allows you to access each 
column by ordinal.
     stringsDS = sqlDF.rdd.map(lambda row: "Key: %d, Value: %s" % (row.key, 
row.value))
     for record in stringsDS.collect():
         print(record)

http://git-wip-us.apache.org/repos/asf/spark/blob/8129d59d/examples/src/main/scala/org/apache/spark/examples/sql/hive/SparkHiveExample.scala
----------------------------------------------------------------------
diff --git 
a/examples/src/main/scala/org/apache/spark/examples/sql/hive/SparkHiveExample.scala
 
b/examples/src/main/scala/org/apache/spark/examples/sql/hive/SparkHiveExample.scala
index 3de2636..e5f75d5 100644
--- 
a/examples/src/main/scala/org/apache/spark/examples/sql/hive/SparkHiveExample.scala
+++ 
b/examples/src/main/scala/org/apache/spark/examples/sql/hive/SparkHiveExample.scala
@@ -76,7 +76,7 @@ object SparkHiveExample {
     // The results of SQL queries are themselves DataFrames and support all 
normal functions.
     val sqlDF = sql("SELECT key, value FROM src WHERE key < 10 ORDER BY key")
 
-    // The items in DaraFrames are of type Row, which allows you to access 
each column by ordinal.
+    // The items in DataFrames are of type Row, which allows you to access 
each column by ordinal.
     val stringsDS = sqlDF.map {
       case Row(key: Int, value: String) => s"Key: $key, Value: $value"
     }


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

Reply via email to