Skip to content

feat: fall back to templates/dml and templates/schemas for generated specs - #151

Merged
rederik76 merged 3 commits into
mainfrom
feature/template-sqlpath-dml-fallback
Sep 2, 2026
Merged

feat: fall back to templates/dml and templates/schemas for generated specs#151
rederik76 merged 3 commits into
mainfrom
feature/template-sqlpath-dml-fallback

Conversation

@rederik76

@rederik76 rederik76 commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • For specs tagged _isTemplateGenerated, resolve relative sqlPath from the dataflow's dml/ directory first, then templates/dml/.
  • For the same specs, resolve relative schemaPath from the dataflow's schemas/ directory first, then templates/schemas/.
  • Regular specs keep spec-local lookup only and never search templates/dml/ or templates/schemas/.
  • Document both search orders and bump VERSION to v0.24.0.

Closes #150

Test plan

  • pytest tests/unit (387 passed, including sqlPath and schemaPath resolution cases)
  • Feature samples job on e2-demo-field-eng (_sql150) — TERMINATED SUCCESS
  • Pattern samples day 1 (_sql150) — TERMINATED SUCCESS

Shared SQL next to a template was never resolved. Generated specs now
search spec-local dml first, then templates/dml; regular specs stay
spec-local only.
Generated specs now search spec-local schemas first, then
templates/schemas, matching sqlPath. Regular specs stay spec-local only.
@rederik76 rederik76 changed the title feat: fall back to templates/dml for template-generated sqlPath feat: fall back to templates/dml and templates/schemas for generated specs Aug 31, 2026
@rederik76
rederik76 merged commit 8850a38 into main Sep 2, 2026
5 checks passed
@rederik76
rederik76 deleted the feature/template-sqlpath-dml-fallback branch September 2, 2026 13:46
@rederik76 rederik76 self-assigned this Sep 2, 2026
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.

[FEATURE]: Template-generated specs should fall back to templates/dml and templates/schemas

1 participant