Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,30 @@ jobs:
output: examples/seed-showcase-report.html
project_root: tests/fixtures/seed-showcase-source
experimental: "1"
# cute-dbt#470 (epic #468, S2) — the GOLDEN raw-DAG incremental
# showcase. A dedicated minimal SYNTHETIC manifest (one incremental
# model + its staging dep) whose `fct_events` raw_code wraps an inner
# CTE inside a `{% if is_incremental() %}` guard, and whose
# compiled_code is the FRESH-build shape (the guard body PRUNED). So
# the regenerated golden exercises the raw structural DAG: the
# verbatim `base` CTE as a `compiled_in` raw node, and the pruned
# incremental guard as a first-class `compiled_out` zone raw node
# (never falsely "compiled") — the honest incremental-CTE visibility
# the spine was built for. node_map.compiled folds `base → base`
# (identity); the pruned zone is type-incapable of a fold target.
# Rendered in --pr-diff mode (a synthetic one-line edit to the model
# file marks it in-scope). No baseline — the showcase is --pr-diff
# only. The compiled manifest is hand-authored (the fresh-build
# compile), never from a real `dbt compile`, so it leaks no
# root_path/username (synthetic-only fixture invariant).
- name: incremental-showcase
mode: report
current: tests/fixtures/incremental-showcase-current.json
baseline: ""
pr_diff: tests/fixtures/incremental-showcase-pr-diff.patch
output: examples/incremental-showcase-report.html
project_root: tests/fixtures/incremental-showcase-source
experimental: ""
# cute-dbt#404 (epic #352) — the GOLDEN PR-scope lineage mini-DAG.
# A dedicated minimal manifest with a CONNECTOR PATH
# (stg_orders → int_order_items → fct_orders): stg_orders and
Expand Down
2 changes: 1 addition & 1 deletion examples/comments-showcase-report.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/diff-showcase-report.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/explore-macro/tests.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/explore-seed/tests.html
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ <h2>stg_states</h2>



<script type="application/json" id="cute-dbt-data">{"baseline":"","models":[{"name":"stg_states","path":"models/staging/stg_states.sql","dag":{"nodes":[{"id":"source","role":"import"},{"id":"(final select)","label":"stg_states.sql","role":"final"}],"edges":[{"from":"source","to":"(final select)","edge_type":"from"}]},"compiled_sql":{"(final select)":"select state_code, state_name, region from source\n","source":"source as (select * from raw_state_codes)"},"code_map":{"compiled":"with source as (select * from raw_state_codes)\nselect state_code, state_name, region from source\n","node_spans":{"(final select)":{"start":{"line":2,"col":1,"byte":47},"end":{"line":3,"col":1,"byte":97}},"source":{"start":{"line":1,"col":6,"byte":5},"end":{"line":1,"col":47,"byte":46}}},"column_spans":{"(final select)\u001fregion":{"start":{"line":2,"col":32,"byte":78},"end":{"line":2,"col":38,"byte":84}},"(final select)\u001fstate_code":{"start":{"line":2,"col":8,"byte":54},"end":{"line":2,"col":18,"byte":64}},"(final select)\u001fstate_name":{"start":{"line":2,"col":20,"byte":66},"end":{"line":2,"col":30,"byte":76}},"source\u001f*":{"start":{"line":1,"col":24,"byte":23},"end":{"line":1,"col":25,"byte":24}}},"raw_node_spans":{"source":{"start":{"line":1,"col":6,"byte":5},"end":{"line":3,"col":2,"byte":65}}},"raw_column_spans":{"(final select)\u001fregion":{"start":{"line":4,"col":32,"byte":97},"end":{"line":4,"col":38,"byte":103}},"(final select)\u001fstate_code":{"start":{"line":4,"col":8,"byte":73},"end":{"line":4,"col":18,"byte":83}},"(final select)\u001fstate_name":{"start":{"line":4,"col":20,"byte":85},"end":{"line":4,"col":30,"byte":95}},"source\u001f*":{"start":{"line":2,"col":12,"byte":28},"end":{"line":2,"col":13,"byte":29}}}},"column_lineage":{"edges":[{"from_col":{"scope":{"intra":{"node_id":"raw_state_codes"}},"column":"*"},"to_col":{"scope":{"intra":{"node_id":"source"}},"column":"*"},"kind":"source","confidence":"opaque"},{"from_col":{"scope":{"intra":{"node_id":"source"}},"column":"state_code"},"to_col":{"scope":{"intra":{"node_id":"(final select)"}},"column":"state_code"},"kind":"pass_through","confidence":"resolved"},{"from_col":{"scope":{"intra":{"node_id":"source"}},"column":"state_name"},"to_col":{"scope":{"intra":{"node_id":"(final select)"}},"column":"state_name"},"kind":"pass_through","confidence":"resolved"},{"from_col":{"scope":{"intra":{"node_id":"source"}},"column":"region"},"to_col":{"scope":{"intra":{"node_id":"(final select)"}},"column":"region"},"kind":"pass_through","confidence":"resolved"}]},"raw_sql":"with source as (\n select * from {{ ref('raw_state_codes') }}\n)\nselect state_code, state_name, region\nfrom source\n","tests":[{"id":"unit_test.analytics.stg_states.test_stg_states_passthrough","name":"test_stg_states_passthrough","target_model":"stg_states","changed":false,"defined_in":"models/staging/unit_tests.yml","given":[{"input":"ref('raw_state_codes')","bound_to_node":"source","table":{"columns":["region","state_code","state_name"],"rows":[{"cells":[{"display":"Northeast","key":{"t":"str","v":"Northeast"}},{"display":"CT","key":{"t":"str","v":"CT"}},{"display":"Connecticut","key":{"t":"str","v":"Connecticut"}}]}]},"rows":[{"region":"Northeast","state_code":"CT","state_name":"Connecticut"}],"format":"dict"}],"expected":{"table":{"columns":["region","state_code","state_name"],"rows":[{"cells":[{"display":"Northeast","key":{"t":"str","v":"Northeast"}},{"display":"CT","key":{"t":"str","v":"CT"}},{"display":"Connecticut","key":{"t":"str","v":"Connecticut"}}]}]},"rows":[{"region":"Northeast","state_code":"CT","state_name":"Connecticut"}],"format":"dict"}}],"is_recursive":false}]}</script>
<script type="application/json" id="cute-dbt-data">{"baseline":"","models":[{"name":"stg_states","path":"models/staging/stg_states.sql","dag":{"nodes":[{"id":"source","role":"import"},{"id":"(final select)","label":"stg_states.sql","role":"final"}],"edges":[{"from":"source","to":"(final select)","edge_type":"from"}]},"compiled_sql":{"(final select)":"select state_code, state_name, region from source\n","source":"source as (select * from raw_state_codes)"},"code_map":{"compiled":"with source as (select * from raw_state_codes)\nselect state_code, state_name, region from source\n","node_spans":{"(final select)":{"start":{"line":2,"col":1,"byte":47},"end":{"line":3,"col":1,"byte":97}},"source":{"start":{"line":1,"col":6,"byte":5},"end":{"line":1,"col":47,"byte":46}}},"column_spans":{"(final select)\u001fregion":{"start":{"line":2,"col":32,"byte":78},"end":{"line":2,"col":38,"byte":84}},"(final select)\u001fstate_code":{"start":{"line":2,"col":8,"byte":54},"end":{"line":2,"col":18,"byte":64}},"(final select)\u001fstate_name":{"start":{"line":2,"col":20,"byte":66},"end":{"line":2,"col":30,"byte":76}},"source\u001f*":{"start":{"line":1,"col":24,"byte":23},"end":{"line":1,"col":25,"byte":24}}},"raw_node_spans":{"source":{"start":{"line":1,"col":6,"byte":5},"end":{"line":3,"col":2,"byte":65}}},"raw_column_spans":{"(final select)\u001fregion":{"start":{"line":4,"col":32,"byte":97},"end":{"line":4,"col":38,"byte":103}},"(final select)\u001fstate_code":{"start":{"line":4,"col":8,"byte":73},"end":{"line":4,"col":18,"byte":83}},"(final select)\u001fstate_name":{"start":{"line":4,"col":20,"byte":85},"end":{"line":4,"col":30,"byte":95}},"source\u001f*":{"start":{"line":2,"col":12,"byte":28},"end":{"line":2,"col":13,"byte":29}}},"raw_dag":{"nodes":[{"id":"source","role":"cte","is_zone":false,"presence":"compiled_in"}]},"node_map":{"compiled":{"source":"source"}}},"column_lineage":{"edges":[{"from_col":{"scope":{"intra":{"node_id":"raw_state_codes"}},"column":"*"},"to_col":{"scope":{"intra":{"node_id":"source"}},"column":"*"},"kind":"source","confidence":"opaque"},{"from_col":{"scope":{"intra":{"node_id":"source"}},"column":"state_code"},"to_col":{"scope":{"intra":{"node_id":"(final select)"}},"column":"state_code"},"kind":"pass_through","confidence":"resolved"},{"from_col":{"scope":{"intra":{"node_id":"source"}},"column":"state_name"},"to_col":{"scope":{"intra":{"node_id":"(final select)"}},"column":"state_name"},"kind":"pass_through","confidence":"resolved"},{"from_col":{"scope":{"intra":{"node_id":"source"}},"column":"region"},"to_col":{"scope":{"intra":{"node_id":"(final select)"}},"column":"region"},"kind":"pass_through","confidence":"resolved"}]},"raw_sql":"with source as (\n select * from {{ ref('raw_state_codes') }}\n)\nselect state_code, state_name, region\nfrom source\n","tests":[{"id":"unit_test.analytics.stg_states.test_stg_states_passthrough","name":"test_stg_states_passthrough","target_model":"stg_states","changed":false,"defined_in":"models/staging/unit_tests.yml","given":[{"input":"ref('raw_state_codes')","bound_to_node":"source","table":{"columns":["region","state_code","state_name"],"rows":[{"cells":[{"display":"Northeast","key":{"t":"str","v":"Northeast"}},{"display":"CT","key":{"t":"str","v":"CT"}},{"display":"Connecticut","key":{"t":"str","v":"Connecticut"}}]}]},"rows":[{"region":"Northeast","state_code":"CT","state_name":"Connecticut"}],"format":"dict"}],"expected":{"table":{"columns":["region","state_code","state_name"],"rows":[{"cells":[{"display":"Northeast","key":{"t":"str","v":"Northeast"}},{"display":"CT","key":{"t":"str","v":"CT"}},{"display":"Connecticut","key":{"t":"str","v":"Connecticut"}}]}]},"rows":[{"region":"Northeast","state_code":"CT","state_name":"Connecticut"}],"format":"dict"}}],"is_recursive":false}]}</script>
<script>

/* cute-dbt shared appearance engine v1 (cute-dbt#242)
Expand Down
2 changes: 1 addition & 1 deletion examples/explore/tests.html

Large diffs are not rendered by default.

11,920 changes: 11,920 additions & 0 deletions examples/incremental-showcase-report.html

Large diffs are not rendered by default.

Loading
Loading