[BETA] feat(nodespec): the single unified dataflow spec (replaces standard/flow/materialized_view)#104
Open
haillew wants to merge 6 commits into
Open
[BETA] feat(nodespec): the single unified dataflow spec (replaces standard/flow/materialized_view)#104haillew wants to merge 6 commits into
haillew wants to merge 6 commits into
Conversation
Introduce the nodester dataflow spec: a single, node-graph format
(source -> transformation -> target) that replaces the separate standard,
flow, and materialized-view formats. The transformer lowers a node graph
into the framework's existing flow spec, so all current capabilities (CDC,
snapshots, data quality, quarantine, sinks, table migration, materialized
views) are preserved.
Highlights:
- Target nodes wire inputs via an `input` list; each item is a node name
(auto flow name) or `{view, flow}` to define the SDP flow name explicitly
and keep it stable across edits (renaming a flow forces a full refresh).
- A single spec may contain both streaming-table and materialized-view
targets, including chains where one feeds the other.
- Python transformation nodes become their own view that applies
apply_transform to their inferred upstream; inline python_transform on a
source is still supported for backward compatibility.
- Inline SQL/Python sources (and append_sql) remain supported but warn, in
both the nodester and legacy formats; the recommended alternative is a
dedicated transformation node.
- Materialized view targets no longer accept an inline source_view (breaking);
chain a source node via `input` instead.
- All 38 nodester samples updated and verified end to end on Databricks.
- Adds ADR-0007 and a rewritten nodester spec reference.
Co-authored-by: Isaac
The local .claude directory (Claude Code commands/settings) should not be part of the repository. Add .claude/ to .gitignore and remove the previously tracked command files from version control. The files remain on disk locally (now ignored), so they persist across branch switches. Co-authored-by: Isaac
Move the feature-test GitHub workflow and the pattern-samples validation notebooks (validate_run_1..4 + validation_utils) out of this branch. They are kept on a local-only branch and intentionally not published upstream. Co-authored-by: Isaac
Rename the spec type, schema (spec_nodespec.json + nodespecSpec), transformer (NodespecSpecTransformer), migration script, sample bundle (nodespec_sample), pipelines, docs, and the data_flow_type value from "nodester" to "nodespec". No behavioural change — purely a rename. Co-authored-by: Isaac
1 task
Rewrite the nodespec transformer around a single snake_case -> camelCase key map plus flat/recursive converters, replacing the per-context allowlist maps and per-source-type branches. Builders now copy every non-structural config key as passthrough detail. Output is unchanged (verified identical across all 38 samples and end to end on Databricks); ~593 -> 440 lines. Co-authored-by: Isaac
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.
What this PR adds (BETA)
A single, unified, node-based dataflow spec — nodespec — that supersedes the standard, flow, and materialized-view formats.
A nodespec is a graph of nodes that chain together:
Targets declare what feeds them via an explicit
inputlist; sources and transformations reference their upstream within their own definition. The node graph lowers into the framework's existing flow-spec representation, so no engine changes are required and every current capability (CDC, snapshots, data quality, quarantine, sinks, table migration, materialized views) is preserved. A single nodespec can mix streaming-table and materialized-view targets, including chains where one feeds the other.Legacy formats continue to work, and
scripts/migrate_to_nodespec.pyconverts existing standard/flow/materialized_view specs.Why
The three separate formats force users to learn three layouts, leak engine internals (flow groups, view registration, staging tables), nest settings deeply, hide pipeline topology, and force streaming tables and materialized views into separate files. nodespec collapses all of that into one readable, chainable model — easier for newcomers writing their first pipeline and for large teams reading and editing each other's pipelines.
Details
See the design decision record:
docs/decisions/0007-unified-nodespec-dataflow-spec.md(full rationale, before/after examples, and the key decisions).