← Back to Pull requests

chore: remove the experimental Comet Native Executors #7799

Open
unknown opened this pull request with 287 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 30, 2026 20:27 UTC
Author

Which issue does this PR close?

Part of #7288.

Rationale for this change

Comet Native Executors is an experiment that has not shipped in a release. Keeping it in this repository costs more than it returns: it has its own Cargo workspace and lockfile, a dedicated CI job, a dependabot entry, a release-process step, and hooks in the planner that every change to planning has to account for. Development and testing continue on branches of my fork, so the experiment no longer needs a home here:

  • native-executors-prototype, the branch of the experimental MVP (#7289)

  • native-executors-driver, the branch of the driver (#7544)
  • What changes are included in this PR?

  • Removes native/native-executors (the comet-scheduler and comet-executor binaries built on DataFusion Ballista) and native/core/src/execution/native_executors (CometFragmentExec).

  • Removes native_executors.proto and the proto fingerprint that only the cluster used.

  • Removes the planner's native-input mode: with_native_inputs, without_data, and the checks that refused JVM expressions and native UDFs under it. Planning on a Spark executor is unchanged.

  • Restores prepare_datafusion_session_context to a single function, and the visibility changes in scan.rs, shuffle.rs and spark_config.rs that only the cluster needed.

  • Removes the linux-test-native-executors job, the format check for the workspace, its dependabot entry, its RAT exclusion, and its step in the release process.
  • JVMClasses::with_env keeps returning an error when no JVM was started, rather than dereferencing an unset VM. That is a safety improvement that does not depend on the cluster, so it stays, with its comments reworded and its test kept.

    CometNativeArrowSource is part of the shuffle path and is not touched.

    How are these changes tested?

  • cargo clippy --workspace --all-targets -- -D warnings and cargo fmt --all -- --check in native/ pass.

  • cargo test -p datafusion-comet -p datafusion-comet-jni-bridge --lib passes except for five http_metrics tests that also fail locally without this change.

  • No JVM code changed.
  • Diff: 287 lines (+215 / -72) across 3 files Reviewer: comphead Review duration: 116m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.40) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 287 lines diff across 3 files
    0.40
    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%
    46%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.339
    Real PR Conversation Timeline
    1 comments
    "Review active on #7799"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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.8% (MEDIUM) · Higher = larger blast radius
    39.8%
    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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 21.2% · Safe to merge
    21.2%