← Back to Pull requests

Honor ORC filter pushdown configuration in GPU scans [databricks] #16850

Closed
unknown closed this pull request without merging on Nov 16, 2026 05:16 UTC
View on GitHub
unknown unknown commented on Nov 12, 2026 05:36 UTC
Author

Fixes #16804.

Description

Honor spark.sql.orc.filterPushdown when constructing search arguments in GPU ORC scans. GPU ORC scans now honor disabled predicate pushdown, allowing users to bypass the known DST-related pruning defect without losing matching rows.

Capture the setting on the driver and check it in the shared filter handler used by PERFILE, COALESCING, and MULTITHREADED readers. The query predicate still executes in the GPU filter; enabled pushdown keeps the existing search-argument construction. The underlying DST pruning defect with pushdown enabled remains tracked in #16803.

Add CPU-written ORC regression coverage for all three readers and V1/V2 scans. Assert exactly the target row with pushdown disabled around the America/New_York DST fallback, and with pushdown both enabled and disabled for ordinary timestamps.

Validation on a local NVIDIA L4 with JDK 17 and TZ=America/New_York:

  • Spark 3.3.0 / Scala 2.12: package build passed; 18 regression cases passed.

  • Spark 3.5.9 / Scala 2.13: package build passed; 18 regression cases passed.

  • Both integration runs used Python 3.10 and TEST_PARALLEL=6 MAX_PARALLEL=6; zero failures, errors, or skips. GPU test-mode plan validation remained enabled.

  • Build commands: env -u SPARK_HOME mvn package -Dbuildver=330 -DskipTests and env -u SPARK_HOME mvn -f scala2.13/pom.xml clean package -Dbuildver=359 -DskipTests.

  • Test command for each matching Spark installation: TZ=America/New_York TESTS=orc_test.py TEST=test_orc_timestamp_filter_pushdown TEST_PARALLEL=6 MAX_PARALLEL=6 RUN_TEST_PARAMS=--test_oom_injection_mode=never ./integration_tests/run_pyspark_from_build.sh.

  • Runtime artifacts record revision 704a4790d; their production Scala source is identical to this PR. The Python regression source includes the final GPU-supported timestamp projection.

  • Final-commit shim source-selection preflight passed across 33 supported profiles. The independent advisory checked five peer combinations with no new interaction findings; 54 additional associations were outside its bounded joint-check limit. Direct ORC file overlaps were inspected and do not change this search-argument guard.
  • Performance benchmarks are not required for this configuration-correctness fix: enabled pushdown retains the existing pruning implementation; with pushdown disabled, reading without predicate pruning is the requested behavior, and comparing against incorrectly pruned results would not establish a valid speedup.

    Draft follow-up:

  • Complete upstream CI validation on the final commit before marking ready for review.
  • AI assistance was used for implementation and validation.

    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

  • (Please provide the names of the existing tests in the PR description.)
  • 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: 390 lines (+292 / -98) across 4 files Reviewer: res-life Review duration: 5739m
    All Vouch review confidence checks passed
    Residual risk 0.29 = Change Risk (0.66) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.66 · 390 lines diff across 4 files
    0.66
    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%
    56%
    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.357
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.066
    Real PR Conversation Timeline
    1 comments
    "Review active on #16850"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 66.3% (HIGH) · Higher = larger blast radius
    66.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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 28.7% · Safe to merge
    28.7%