← Back to Pull requests

Run TPC-DS CI on decimal data, validated against Presto CPU #445

Closed
unknown closed this pull request without merging on Nov 14, 2026 00:54 UTC
View on GitHub
unknown unknown commented on Nov 13, 2026 22:34 UTC
Author

Part of #442.

TPC-DS CI data was generated with --convert-decimals-to-floats, so its decimal columns were tested as DOUBLE. This PR generates decimal data and replaces DuckDB with Presto CPU as the TPC-DS reference. Each TPC-DS job first runs the queries on a single-worker Presto CPU cluster, using the nightly CPU worker image built from the same Presto and Velox commits, and stores the results with --store-presto-results. It then compares the Presto GPU results against them with --reference-results-dir. DuckDB cannot be the reference for decimal TPC-DS because it returns DOUBLE for avg() and decimal division where Presto keeps DECIMAL, so Q44, Q53, Q58, Q63 and Q66 differ (see #439). TPC-H keeps DuckDB as its reference.

Other changes:

  • TPC-DS schemas: regenerated from decimal data. 80 columns change from DOUBLE to DECIMAL(7,2), DECIMAL(5,2) or DECIMAL(15,2), and table_schemas_test.py (#433) now compares them against decimal data.

  • Decimal results: the Presto client returns DECIMAL values as strings. test_utils.py converts them to Decimal, so stored results stay numeric and ORDER BY validation compares numbers rather than strings ('999.00' sorted after '1000.00').

  • CPU memory limits: the CI coordinator overrides cap query memory at 3GB. That fits GPU runs because device memory is not counted, but on CPU Q23, Q37, Q64, Q82 and Q95 exceeded it. patch_ci_configs.sh gains --extra-overrides-file, and the CPU cluster raises query.max-memory and query.max-total-memory to 20GB. A probe run with a 24GB limit measured a peak of 16.4 GiB (Q82), with at most 49.2 of 58.4 GiB host memory in use: https://github.com/rapidsai/velox-testing/actions/runs/43493168216
  • The CPU reference run adds 5–39 minutes per TPC-DS job, depending on the runner. Reducing it is tracked in #442.

    Validation run of presto-test on this branch with the 2026-11-13 pinned nightly images: https://github.com/rapidsai/velox-testing/actions/runs/43518240330. This should also resolve #439: Q44, which fails intermittently on DOUBLE data, passed in all 10 TPC-DS jobs of the probe run.

    This conflicts with #443. This PR moves TPCH_QUERIES to the job-level env, so whichever merges second must add Q15 there.

    Diff: 281 lines (+210 / -71) across 3 files Reviewer: paul-aiyedun Review duration: 139m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 281 lines diff across 3 files
    0.40
    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.338
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #445"
    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.7% (MEDIUM) · Higher = larger blast radius
    39.7%
    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.7% · Safe to merge
    15.7%