Repository: spark
Updated Branches:
  refs/heads/branch-1.5 5be517584 -> 257e9d727


[MINOR] [SQL] Fix sphinx warnings in PySpark SQL

Author: MechCoder <manojkumarsivaraj...@gmail.com>

Closes #8171 from MechCoder/sql_sphinx.

(cherry picked from commit 52c60537a274af5414f6b0340a4bd7488ef35280)
Signed-off-by: Xiangrui Meng <m...@databricks.com>


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

Branch: refs/heads/branch-1.5
Commit: 257e9d727874332fd192f6a993f9ea8bf464abf5
Parents: 5be5175
Author: MechCoder <manojkumarsivaraj...@gmail.com>
Authored: Thu Aug 20 10:05:31 2015 -0700
Committer: Xiangrui Meng <m...@databricks.com>
Committed: Thu Aug 20 10:05:39 2015 -0700

----------------------------------------------------------------------
 python/pyspark/context.py   | 8 ++++----
 python/pyspark/sql/types.py | 4 +++-
 2 files changed, 7 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/257e9d72/python/pyspark/context.py
----------------------------------------------------------------------
diff --git a/python/pyspark/context.py b/python/pyspark/context.py
index eb5b0bb..1b2a52a 100644
--- a/python/pyspark/context.py
+++ b/python/pyspark/context.py
@@ -302,10 +302,10 @@ class SparkContext(object):
         """
         A unique identifier for the Spark application.
         Its format depends on the scheduler implementation.
-        (i.e.
-            in case of local spark app something like 'local-1433865536131'
-            in case of YARN something like 'application_1433865536131_34483'
-        )
+
+        * in case of local spark app something like 'local-1433865536131'
+        * in case of YARN something like 'application_1433865536131_34483'
+
         >>> sc.applicationId  # doctest: +ELLIPSIS
         u'local-...'
         """

http://git-wip-us.apache.org/repos/asf/spark/blob/257e9d72/python/pyspark/sql/types.py
----------------------------------------------------------------------
diff --git a/python/pyspark/sql/types.py b/python/pyspark/sql/types.py
index c083bf8..ed4e5b5 100644
--- a/python/pyspark/sql/types.py
+++ b/python/pyspark/sql/types.py
@@ -467,9 +467,11 @@ class StructType(DataType):
         """
         Construct a StructType by adding new elements to it to define the 
schema. The method accepts
         either:
+
             a) A single parameter which is a StructField object.
             b) Between 2 and 4 parameters as (name, data_type, nullable 
(optional),
-             metadata(optional). The data_type parameter may be either a 
String or a DataType object
+               metadata(optional). The data_type parameter may be either a 
String or a
+               DataType object.
 
         >>> struct1 = StructType().add("f1", StringType(), True).add("f2", 
StringType(), True, None)
         >>> struct2 = StructType([StructField("f1", StringType(), True),\


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to