diff options
author | MechCoder <manojkumarsivaraj334@gmail.com> | 2015-08-20 10:05:31 -0700 |
---|---|---|
committer | Xiangrui Meng <meng@databricks.com> | 2015-08-20 10:05:31 -0700 |
commit | 52c60537a274af5414f6b0340a4bd7488ef35280 (patch) | |
tree | 504a6cd7922b24d24e0218207d0c58c39a188556 /python/pyspark/sql/types.py | |
parent | b4f4e91c395cb69ced61d9ff1492d1b814f96828 (diff) | |
download | spark-52c60537a274af5414f6b0340a4bd7488ef35280.tar.gz spark-52c60537a274af5414f6b0340a4bd7488ef35280.tar.bz2 spark-52c60537a274af5414f6b0340a4bd7488ef35280.zip |
[MINOR] [SQL] Fix sphinx warnings in PySpark SQL
Author: MechCoder <manojkumarsivaraj334@gmail.com>
Closes #8171 from MechCoder/sql_sphinx.
Diffstat (limited to 'python/pyspark/sql/types.py')
-rw-r--r-- | python/pyspark/sql/types.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/pyspark/sql/types.py b/python/pyspark/sql/types.py index c083bf8990..ed4e5b594b 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),\ |