Skip to content

Normalize notebook cell source before wrapping jobs - #2143

Open
Hashim1999164 wants to merge 1 commit into
databricks:mainfrom
Hashim1999164:fix/ipynb-cell-source-string
Open

Normalize notebook cell source before wrapping jobs#2143
Hashim1999164 wants to merge 1 commit into
databricks:mainfrom
Hashim1999164:fix/ipynb-cell-source-string

Conversation

@Hashim1999164

@Hashim1999164 Hashim1999164 commented Aug 22, 2026

Copy link
Copy Markdown

Changes

Run as Databricks Job crashed when an ipynb cell source was a JSON string. Nbformat allows a string or a list. The wrapper now normalizes source to lines before calling flatMap.

Fixes #2142

Tests

Added a unit test with a string cell source next to the existing list source wrap test.

@github-actions

Copy link
Copy Markdown
Contributor

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/vscode

Inputs:

  • PR number: 2143
  • Commit SHA: 36fa587ae5e3d8fb606011f1c410b2d60b7043b0

Checks will be approved automatically on success.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Run as Databricks Job fails with "_a18.flatMap is not a function" when a notebook cell's source is a JSON string instead of a list

1 participant