Skip to content

Replace prefetch_file_metadata's bool/Unspecified with explicit remote_only/always/never - #23699

Draft
Matt711 wants to merge 1 commit into
NVIDIA:mainfrom
Matt711:matt711/prefetch-tri-state
Draft

Replace prefetch_file_metadata's bool/Unspecified with explicit remote_only/always/never#23699
Matt711 wants to merge 1 commit into
NVIDIA:mainfrom
Matt711:matt711/prefetch-tri-state

Conversation

@Matt711

@Matt711 Matt711 commented Aug 18, 2026

Copy link
Copy Markdown
Member

Description

Follow-up to #23558 / #23684. Replaces the type of ParquetOptions.prefetch_file_metadata (ie. bool/Unspecified) with Literal["remote_only", "always", "never"] so it's serializable. The env var still accepts "1"/"0" etc. for backwards compatibility. Our plan is eventually turn on metadata prefetching on by default which would eliminate need for Literal["remote_only", "always", "never"] (on/off would be sufficient).

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@copy-pr-bot

copy-pr-bot Bot commented Aug 18, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@Matt711 Matt711 added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Aug 18, 2026
@github-actions github-actions Bot added Python Affects Python cuDF API. cudf-polars Issues specific to cudf-polars labels Aug 18, 2026
@Matt711

Matt711 commented Aug 18, 2026

Copy link
Copy Markdown
Member Author

/ok to test aafa183

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

Labels

cudf-polars Issues specific to cudf-polars improvement Improvement / enhancement to an existing function non-breaking Non-breaking change Python Affects Python cuDF API.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant