EnricoMi commented on code in PR #44470: URL: https://github.com/apache/arrow/pull/44470#discussion_r2079085897
########## python/pyarrow/dataset.py: ########## @@ -893,7 +893,12 @@ def write_dataset(data, base_dir, *, basename_template=None, format=None, ``FileFormat.make_write_options()`` function. use_threads : bool, default True Write files in parallel. If enabled, then maximum parallelism will be - used determined by the number of available CPU cores. + used determined by the number of available CPU cores. Using multiple + threads may change the order of rows in the written dataset. + preserve_order : bool, default False + Preserve the order of rows. If enabled, order of rows in the dataset are + guaranteed to be preserved even if use_threads is enabled. This may cause + notable performance degradation. Review Comment: ```suggestion guaranteed to be preserved even if use_threads is set to True. This may cause notable performance degradation. ``` -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org