jorisvandenbossche commented on a change in pull request #11031:
URL: https://github.com/apache/arrow/pull/11031#discussion_r699278233



##########
File path: python/pyarrow/parquet.py
##########
@@ -511,14 +511,14 @@ def _sanitize_table(table, new_schema, flavor):
     Write timestamps to INT96 Parquet format. Defaults to False unless enabled
     by flavor argument. This take priority over the coerce_timestamps option.
 coerce_timestamps : str, default None
-    Cast timestamps a particular resolution. The defaults depends on `version`.
-    For ``version='1.0'`` (the default), nanoseconds will be cast to
-    microseconds ('us'), and seconds to milliseconds ('ms') by default.
-    For ``version='2.4'``, nanoseconds will be cast to microseconds.
-    For ``version='2.6'``, the original resolution is always preserved.
-    The casting might result in loss of data, in which case
-    ``allow_truncated_timestamps=True`` can be used to suppress the raised
-    exception.
+    Cast timestamps to a particular resolution. If omitted, defaults are chosen
+    depending on `version`. By default, for ``version='1.0'`` (the default)
+    and ``version='2.4'``, nanoseconds are cast to microseconds ('us'), while
+    for other `version` values, they are written natively without loss
+    of resolution.  Seconds are always cast to milliseconds ('ms') by default,
+    as Parquet does not have any temporal type with seconds resolution.
+    If the casting results in loss of data, it will raise an exception
+    unless ``allow_truncated_timestamps=True`` is given.

Review comment:
       Very clear now!




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to