Skip to content

MINOR: [Docs][Python] update exclude_invalid_files docstring to correct default behavior#47785

Merged
kou merged 1 commit intoapache:mainfrom
sidneymau:GH-47770
Oct 13, 2025
Merged

MINOR: [Docs][Python] update exclude_invalid_files docstring to correct default behavior#47785
kou merged 1 commit intoapache:mainfrom
sidneymau:GH-47770

Conversation

@sidneymau
Copy link
Copy Markdown
Contributor

@sidneymau sidneymau commented Oct 10, 2025

Rationale for this change

This PR simply updates the default quoted in the docstring to the correct value for exclude_invalid_files in dataset (see #47770).

What changes are included in this PR?

The exclude_invalid_files default is now listed as False instead of True

Are these changes tested?

No, these changes only affect docstrings and not testable code. There is a test that appears to assert this behavior, though, so this updates the docstring to be consistent with an existing test:

assert options.exclude_invalid_files is False

Are there any user-facing changes?

Updated documentation

@github-actions
Copy link
Copy Markdown

Thanks for opening a pull request!

If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose

Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project.

Then could you also rename the pull request title in the following format?

GH-${GITHUB_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}

or

MINOR: [${COMPONENT}] ${SUMMARY}

See also:

@sidneymau sidneymau changed the title Update docstring for dataset exclude_invalid_files option MINOR: [Python] update exclude_invalid_files docstring to correct default behavior Oct 10, 2025
@sidneymau sidneymau changed the title MINOR: [Python] update exclude_invalid_files docstring to correct default behavior MINOR: [Docs][Python] update exclude_invalid_files docstring to correct default behavior Oct 10, 2025
@kou
Copy link
Copy Markdown
Member

kou commented Oct 11, 2025

@github-actions crossbow submit preview-docs

Copy link
Copy Markdown
Member

@kou kou left a comment

Choose a reason for hiding this comment

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

+1

@github-actions
Copy link
Copy Markdown

Revision: cf925ea

Submitted crossbow builds: ursacomputing/crossbow @ actions-2615655928

Task Status
preview-docs GitHub Actions

Copy link
Copy Markdown
Member

@raulcd raulcd left a comment

Choose a reason for hiding this comment

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

👍

@github-actions github-actions bot added awaiting merge Awaiting merge and removed awaiting review Awaiting review labels Oct 13, 2025
@kou kou merged commit be6dddf into apache:main Oct 13, 2025
18 checks passed
@kou kou removed the awaiting merge Awaiting merge label Oct 13, 2025
@sidneymau sidneymau deleted the GH-47770 branch October 13, 2025 16:58
@conbench-apache-arrow
Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit be6dddf.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

zanmato1984 pushed a commit to zanmato1984/arrow that referenced this pull request Oct 15, 2025
…rect default behavior (apache#47785)

### Rationale for this change

This PR simply updates the default quoted in the docstring to the correct value for `exclude_invalid_files` in `dataset` (see apache#47770).

### What changes are included in this PR?

The `exclude_invalid_files` default is now listed as `False` instead of `True`

### Are these changes tested?

No, these changes only affect docstrings and not testable code. There is a test that appears to assert this behavior, though, so this updates the docstring to be consistent with an existing test: https://github.com/apache/arrow/blob/5750e2932fc26c27be92fe9262f6b128a513abca/python/pyarrow/tests/test_dataset.py#L1149

### Are there any user-facing changes?

Updated documentation

Authored-by: Sidney Mau <sidneymau@gmail.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants