← Back to Pull requests

[spark] Add an isolated Spark 4.3 connector build #11246

Closed
unknown closed this pull request without merging on Nov 20, 2026 14:55 UTC
View on GitHub
unknown unknown commented on Nov 18, 2026 09:45 UTC
Author

Purpose

Add an experimental paimon-spark-4.3_2.13 connector through a separate spark43 profile, as #11127 did for Spark 4.2. The spark4 and spark42 connectors are unchanged.

Spark 4.3 keeps the 4.2 APIs Paimon adapts to, so the five SPARK_VERSION.startsWith("4.2.") gates now read >= "4.2". The rest covers what 4.3 changed:

  • SpecializedGetters gains two nanosecond timestamp getters and ParserInterface gains splitStatements. Their types do not exist in 4.2, so paimon-spark4-common gets 4.3 copies of the row, array and parser classes under src/main/spark43. No Paimon type maps to nanosecond timestamps, so the getters throw.

  • GeneratedColumn.validateGeneratedColumns is gone. REPLACE TABLE calls it or 4.3's validateCatalogForGeneratedColumn, whichever the runtime has, as Spark does.
  • paimon-spark-4.3 compiles the main and test sources of paimon-spark-4.2, Ossie semantic views included, against Spark 4.3. It adds only its NOTICE and the tests that need 4.3 APIs. Like 4.2, it gets a CI lane and is not published.

    Tests

    paimon-spark-4.3 runs every paimon-spark-4.2 test on Spark 4.3. Spark42CompatibilityTest gains two cases, so both connectors cover them:

  • a column-list CREATE OR REPLACE TABLE, which goes through the generated-column check above;

  • CREATE OR REPLACE TABLE ... AS SELECT, which takes the separate RTAS strategy.
  • Spark43CompatibilityTest calls splitStatements, a parser API that 4.2 does not have, through Paimon's parser.

    Spark42CompatibilityTest and OssieSemanticViewTest set spark.sql.analyzer.singlePassResolver.dualRunWithLegacy=false. Spark 4.3 (SPARK-56596) turns that dual run on by default in tests, and the single-pass resolver skips injected resolution rules, so it cannot resolve Paimon views. Spark 4.2 already defaults it to false.

    Diff: 230 lines (+172 / -58) across 2 files Reviewer: LuciferYang Review duration: 3189m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 230 lines diff across 2 files
    0.37
    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.326
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #11246"
    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: 37% (MEDIUM) · Higher = larger blast radius
    37%
    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: 14.6% · Safe to merge
    14.6%
    Repository