Skip to content

feat(databricks): support notebook-scoped Python packages - #15716

Open
sd-db wants to merge 1 commit into
dbt-labs:mainfrom
sd-db:sd-db/port/notebook-scoped-python-packages-fusion
Open

feat(databricks): support notebook-scoped Python packages#15716
sd-db wants to merge 1 commit into
dbt-labs:mainfrom
sd-db:sd-db/port/notebook-scoped-python-packages-fusion

Conversation

@sd-db

@sd-db sd-db commented Jul 29, 2026

Copy link
Copy Markdown

Resolves #15688

Problem

Fusion does not support dbt-databricks' notebook_scoped_libraries configuration for Python models.

Solution

  • Add v1-compatible configuration propagation and boolean validation.
  • Prepend notebook-scoped %pip install and Python restart cells.
  • Preserve package order and duplicates.
  • Exclude scoped packages from job-level libraries while preserving additional libraries.
  • Use the Jobs Reset API correctly for existing workflows.
  • Add schema, adapter, and parity regression coverage.

Validation

  • Fusion schema tests: 3 passed.
  • Fusion Databricks adapter tests: 9 passed.
  • v1 recording, Fusion replay, and Fusion live parity: 6/6 passed.
  • Format, clippy, build, and diff checks passed.

Checklist

  • I have read the contributing guide and understand what's expected of me.
  • I have run this code in development, and it appears to resolve the stated issue.
  • This PR includes tests, or tests are not required or relevant for this PR.
  • This PR has no interface changes (e.g., macros, CLI, logs, JSON artifacts, config files, adapter interface, etc.) or this PR has already received feedback and approval from Product or DX.
  • This PR includes type annotations for new and modified functions.

@cla-bot cla-bot Bot added the cla:yes label Jul 29, 2026
codescene-delta-analysis[bot]

This comment was marked as outdated.

@sd-db
sd-db force-pushed the sd-db/port/notebook-scoped-python-packages-fusion branch from bd594a1 to 1eb4fa2 Compare July 29, 2026 10:18

@codescene-delta-analysis codescene-delta-analysis Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Health Improved (1 files improve in Code Health)

Gates Failed
Enforce advisory code health rules (2 files with Large Method)

Our agent can fix these. Install it.

Gates Passed
3 Quality Gates Passed

Reason for failure
Enforce advisory code health rules Violations Code Health Impact
model_config.rs 1 advisory rule 4.42 → 4.41 Suppress
manifest_nodes.rs 1 advisory rule 6.97 → 6.97 Suppress

See analysis details in CodeScene

View Improvements
File Code Health Impact Categories Improved
mod.rs 9.01 → 9.02 Large Method, String Heavy Function Arguments

Quality Gate Profile: Clean Code Collective
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.

@sd-db
sd-db marked this pull request as ready for review July 29, 2026 10:29
@sd-db
sd-db requested a review from a team as a code owner July 29, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[PORT-OVER] feat: Add Notebook-scoped packages for command submits or notebook job run

1 participant