Skip to content

Change split_row_groups default to False in read_parquet - #8981

Merged
jcrist merged 4 commits into
dask:mainfrom
rjzamora:split-row-groups-false
Apr 27, 2022
Merged

jcrist merged 4 commits into
dask:mainfrom
rjzamora:split-row-groups-false

Conversation

@rjzamora

Copy link
Copy Markdown
Member

As discussed in #8937, there are many reasons to simplify the confusing logic around the defaults used for split_row_groups and gather_statistics (and their relation to _metadata) in read_parquet. The current plan is to simplify default behavior and remove any "magic switches."

This PR changes the split_row_groups default to False (no matter the setting of gather_statistics).

The follow-up to this PR will remove gather_statistics in favor of calculate_divisions (with a consistent default of False).

cc @jcrist

@github-actions github-actions Bot added dataframe documentation Improve or add to documentation io labels Apr 26, 2022
@rjzamora

Copy link
Copy Markdown
Member Author

Interesting that only two tests failed when I changed the split_row_groups default to False in the top-level function signature (and those failures were actually due to a subtle bug in statistics gathering).

I was originally considering a temporarily file-size check like the one I proposed in dask_cudf. However, I really don't think the change is likely to affect the large majority of users with the pandas backend. I don't think it is worthwhile to do anything besides change the default and update documentation here.

Comment thread docs/source/dataframe-parquet.rst Resolved
@jcrist

jcrist commented Apr 27, 2022

Copy link
Copy Markdown
Member

Thanks @rjzamora. I've fixed the merge conflict, this looks good to me. Merging!

@jcrist
jcrist merged commit e505932 into dask:main Apr 27, 2022
@rjzamora
rjzamora deleted the split-row-groups-false branch April 28, 2022 15:19
@@ -897,11 +897,6 @@ def _collect_dataset_info(
# be avoided at all costs.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^ There's a doc string above commenting on the split_row_groups behavior, but that seems to have been removed here? Should that doc string still be here?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean the comment starting on line 892, or a docstring on a method somewhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dataframe documentation Improve or add to documentation io parquet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants