← Back to Pull requests

Fix Parquet and ORC reads with literal dotted column names [databricks] #16997

Closed
unknown closed this pull request without merging on Nov 20, 2026 06:35 UTC
View on GitHub
unknown unknown commented on Nov 17, 2026 21:41 UTC
Author

Fixes #16636.

Description

Reading a file containing both a literal column named a.b and a struct a with child b could return incorrect values or fail with a schema mismatch. Flattening both paths into the same string made unrelated fields indistinguishable.

This change:

  • Preserves path components and matches physical column paths exactly during Parquet footer clipping; case resolution happens earlier during schema clipping.

  • Fixes a preexisting field-ID read bug where case-distinct physical columns such as A and a could return values from the wrong column, including inside nested structs.

  • Avoids ambiguous cuDF column selection for dotted root names when the prepared Parquet or ORC footer already contains the required columns.

  • Prevents ambiguous ORC decimal-width overrides, including dotted fields inside structs, arrays, and maps.

  • Routes dotted projections through the existing GPU parquet-mr reader when hybrid scanning is enabled, for both PERFILE and MULTITHREADED modes. Ordinary projections remain eligible for hybrid scanning.
  • Added tests - Coverage includes physical column order, projections, V1/V2 scans, reader strategies, chunked decoding, nested decimal collisions, schema widening, reordered/missing fields and hybrid fallback behavior.

    Performance measurements:

  • The hybrid eligibility check added approximately 0.12–7.66 microseconds for schemas with 16–1024 fields.

  • The ORC decimal guard added approximately 0.11–13.38 microseconds per options call in measured schemas; traversal is skipped when no decimal128 overrides are needed.
  • AI assistance was used for implementation and testing.

    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: 254 lines (+190 / -64) across 3 files Reviewer: gerashegalov Review duration: 3414m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 254 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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.332
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #16997"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    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: 39.1% (MEDIUM) · Higher = larger blast radius
    39.1%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 15.4% · Safe to merge
    15.4%