Add pipelines preview-datasets command - #1
Open
tanishgupta-db wants to merge 4 commits into
Open
Conversation
tanishgupta-db
force-pushed
the
pipelines_datasets_command
branch
4 times, most recently
from
July 11, 2026 00:00
d1d163a to
57f5a7c
Compare
tanishgupta-db
force-pushed
the
pipelines_datasets_command
branch
from
July 21, 2026 22:58
57f5a7c to
e3460b2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Adds a hidden
databricks pipelines preview-datasetscommand that lists the datasets a pipeline defines. It reads the datasets from a pipeline's latest validate-only dry-run; if none exists it triggers one and waits. Flags:--force-dry-runalways triggers a fresh dry-run,--no-dry-runnever triggers one,--timeoutbounds the wait.The command talks directly to the pipeline entities REST endpoints (
PUBLIC_UNDOCUMENTEDin staging), so it is hidden.Why
Users want to see a pipeline's resolved datasets without opening the workspace UI. Reading them requires a dry-run's computed graph, so the command wraps the trigger/poll/read flow behind one invocation.
Key decisions:
Future work (not in this PR): consider a shell-completion function for the pipeline key; revisit the poll interval for very long dry-runs; add a harness for all preview (dry-run based) commands common functionality (flags, triggering, etc.); Isolate all http logic (types, calls, etc) so SDK can be switched in easily.
Tests
Unit tests for the dry-run resolution state machine (all modes/states), diagnostics formatting, and rendering; full-flow tests over an in-process fake of the pipeline API (trigger→poll→fetch, pagination, failed-dry-run diagnostics, continuous/active-update errors); and acceptance tests exercising the real CLI against the fake on both deployment engines.