Skip to content

Commit 77a1ef1

Browse files
committed
Making python style checker happy.
1 parent e4e4e7e commit 77a1ef1

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

python/pyspark/sql/readwriter.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,9 @@ def json(self, path, schema=None, primitivesAsString=None, prefersDecimal=None,
229229
follow the formats at ``java.time.format.DateTimeFormatter``. This
230230
applies to date type. If None is set, it uses the
231231
default value, ``yyyy-MM-dd``.
232-
:param timestampFormat: sets the string that indicates a timestamp format. Custom date
233-
formats follow the formats at ``java.time.format.DateTimeFormatter``.
232+
:param timestampFormat: sets the string that indicates a timestamp format.
233+
Custom date formats follow the formats at
234+
``java.time.format.DateTimeFormatter``.
234235
This applies to timestamp type. If None is set, it uses the
235236
default value, ``yyyy-MM-dd'T'HH:mm:ss.SSSXXX``.
236237
:param multiLine: parse one record, which may span multiple lines, per file. If None is
@@ -409,8 +410,9 @@ def csv(self, path, schema=None, sep=None, encoding=None, quote=None, escape=Non
409410
follow the formats at ``java.time.format.DateTimeFormatter``. This
410411
applies to date type. If None is set, it uses the
411412
default value, ``yyyy-MM-dd``.
412-
:param timestampFormat: sets the string that indicates a timestamp format. Custom date
413-
formats follow the formats at ``java.time.format.DateTimeFormatter``.
413+
:param timestampFormat: sets the string that indicates a timestamp format.
414+
Custom date formats follow the formats at
415+
``java.time.format.DateTimeFormatter``.
414416
This applies to timestamp type. If None is set, it uses the
415417
default value, ``yyyy-MM-dd'T'HH:mm:ss.SSSXXX``.
416418
:param maxColumns: defines a hard limit of how many columns a record can have. If None is
@@ -806,8 +808,9 @@ def json(self, path, mode=None, compression=None, dateFormat=None, timestampForm
806808
follow the formats at ``java.time.format.DateTimeFormatter``. This
807809
applies to date type. If None is set, it uses the
808810
default value, ``yyyy-MM-dd``.
809-
:param timestampFormat: sets the string that indicates a timestamp format. Custom date
810-
formats follow the formats at ``java.time.format.DateTimeFormatter``.
811+
:param timestampFormat: sets the string that indicates a timestamp format.
812+
Custom date formats follow the formats at
813+
``java.time.format.DateTimeFormatter``.
811814
This applies to timestamp type. If None is set, it uses the
812815
default value, ``yyyy-MM-dd'T'HH:mm:ss.SSSXXX``.
813816
:param encoding: specifies encoding (charset) of saved json files. If None is set,
@@ -907,8 +910,9 @@ def csv(self, path, mode=None, compression=None, sep=None, quote=None, escape=No
907910
follow the formats at ``java.time.format.DateTimeFormatter``. This
908911
applies to date type. If None is set, it uses the
909912
default value, ``yyyy-MM-dd``.
910-
:param timestampFormat: sets the string that indicates a timestamp format. Custom date
911-
formats follow the formats at ``java.time.format.DateTimeFormatter``.
913+
:param timestampFormat: sets the string that indicates a timestamp format.
914+
Custom date formats follow the formats at
915+
``java.time.format.DateTimeFormatter``.
912916
This applies to timestamp type. If None is set, it uses the
913917
default value, ``yyyy-MM-dd'T'HH:mm:ss.SSSXXX``.
914918
:param ignoreLeadingWhiteSpace: a flag indicating whether or not leading whitespaces from

python/pyspark/sql/streaming.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -459,8 +459,9 @@ def json(self, path, schema=None, primitivesAsString=None, prefersDecimal=None,
459459
follow the formats at ``java.time.format.DateTimeFormatter``. This
460460
applies to date type. If None is set, it uses the
461461
default value, ``yyyy-MM-dd``.
462-
:param timestampFormat: sets the string that indicates a timestamp format. Custom date
463-
formats follow the formats at ``java.time.format.DateTimeFormatter``.
462+
:param timestampFormat: sets the string that indicates a timestamp format.
463+
Custom date formats follow the formats at
464+
``java.time.format.DateTimeFormatter``.
464465
This applies to timestamp type. If None is set, it uses the
465466
default value, ``yyyy-MM-dd'T'HH:mm:ss.SSSXXX``.
466467
:param multiLine: parse one record, which may span multiple lines, per file. If None is
@@ -633,8 +634,9 @@ def csv(self, path, schema=None, sep=None, encoding=None, quote=None, escape=Non
633634
follow the formats at ``java.time.format.DateTimeFormatter``. This
634635
applies to date type. If None is set, it uses the
635636
default value, ``yyyy-MM-dd``.
636-
:param timestampFormat: sets the string that indicates a timestamp format. Custom date
637-
formats follow the formats at ``java.time.format.DateTimeFormatter``.
637+
:param timestampFormat: sets the string that indicates a timestamp format.
638+
Custom date formats follow the formats at
639+
``java.time.format.DateTimeFormatter``.
638640
This applies to timestamp type. If None is set, it uses the
639641
default value, ``yyyy-MM-dd'T'HH:mm:ss.SSSXXX``.
640642
:param maxColumns: defines a hard limit of how many columns a record can have. If None is

0 commit comments

Comments
 (0)