← Back to Pull requests

rfc: configurable RapidsFileIO and per-scheme storage access [skip ci] #17054

Open
unknown opened this pull request with 330 lines diff across 4 files
View on GitHub
unknown unknown commented on Nov 20, 2026 02:06 UTC
Author

Contributes to #17025.

Description

Today HadoopFileIO backs every non-Iceberg data-file path through RapidsFileIO. Iceberg table reads and writes use the table’s own FileIO through IcebergFileIO. An application that needs its own storage backend alongside Hadoop must change the plugin to use that backend as a RapidsFileIO.

The proposal lets a Spark SQL session choose its implementation with spark.rapids.sql.fileio.impl (under the plugin’s standard spark.rapids.sql. prefix). Applications can name one class for RAPIDS Parquet/ORC reads, GPU file-format writes, and OSS Delta on-disk deletion vectors with pushdown enabled, or choose ResolvingRapidsFileIO to select a class each time an input or output file is created. Custom classes receive their scoped string options through a public Java Map constructor (and should load secrets from their own credential provider or use keys matched by spark.redaction.regex). Driver planning validates both the top-level and configured per-scheme custom classes, modifiers, constructor signatures, and scheme-key casings (supporting dotted URI schemes while preserving dotted options) eagerly. Parquet/ORC reader factories and write jobs broadcast FileIOConfig (registered in GpuKryoRegistrator) and construct RapidsFileIO lazily once per task on executors; implementations must be thread-safe and AutoCloseable instances are closed via Spark task completion listeners. Non-FileIO formats (CSV, JSON, Avro, Hive delimited text), legacy/Databricks Delta deletion vectors, Spark filesystem/committer operations (committers intercepting FileSystem.create such as the S3A magic committer are unsupported), Iceberg tables, and Parquet dictionary/Bloom filter pruning continue to use their existing paths. The RFC also clarifies the relationship to HadoopFileIO input-file providers (#17009, #17200).

Existing jobs can keep using their Hadoop settings and files. Read the RFC.

I checked the description of the current I/O paths against main and verified the rendered Markdown and configuration examples.

AI assistance was used to prepare this RFC.

Checklists

Documentation

  • Updated for new or modified user-facing features or behaviors

  • No user-facing change
  • Testing

  • Added or modified tests to cover new code paths

  • Covered by existing tests

  • Not required
  • Performance

  • Tests ran and results are added in the PR description

  • Issue filed with a link in the PR description

  • Not required
  • Diff: 330 lines (+247 / -83) across 4 files Reviewer: gerashegalov Review duration: 22050m
    All Vouch review confidence checks passed
    Residual risk 0.37 = Change Risk (0.65) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.65 · 330 lines diff across 4 files
    0.65
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    42%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.347
    Shallow Review Depth shallow_review_depth
    0.344
    Sensitive Paths sensitive_paths
    0.065
    Real PR Conversation Timeline
    1 comments
    "Review active on #17054"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 43.0% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 65.3% (HIGH) · Higher = larger blast radius
    65.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 43.0% · Lower = rushed or shallow review
    43.0%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 37.2% · Moderate risk
    37.2%