Commit c30c456
Prepare a new "generic" template, use "src layout" for Lakeflow template (#3671)
## Changes
This PR prepares a generic `default` template that I want to use as the
basis for `default-python`, `lakeflow-pipelines`, and (likely)
`default-sql`:
* This template revises and replaces `lakeflow-pipelines`
* The template now uses an "src" layout with job/pipeline environments
pointing to the directory of the pyproject.toml file
* Jobs in this template now pass the `catalog` and `schema` parameters
since we ask a question about catalog/schema in the template
To support the notion of a "generic" template, the template schema
format now supports a `template_dir` argument. This allows us to have
multiple `databricks_template_schema.json` files that point to one
template directory.
Out of scope: this PR does not yet update `default-python`. For early
testing purposes, an early version is available as
`experimental-default-python`. To keep the diff cleaner, I removed
acceptance tests for this template; that's something for a follow-up PR.
## Why
* We want to follow the Lakeflow conventions in templates
* Our templates are hard to maintain and have many inconsistencies. I'd
like to move to one shared template for at least default-python and the
Lakeflow template.
## Tests
* Standard template testing methodology.
<!-- If your PR needs to be included in the release notes for next
release,
add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->
---------
Co-authored-by: Claude <[email protected]>1 parent bd47132 commit c30c456
File tree
59 files changed
+500
-342
lines changed- acceptance/bundle/templates/lakeflow-pipelines
- python/output/my_lakeflow_pipelines
- resources
- lakeflow_pipelines_etl
- src/lakeflow_pipelines_etl
- explorations
- transformations
- sql/output/my_lakeflow_pipelines
- resources
- lakeflow_pipelines_etl
- src/lakeflow_pipelines_etl
- explorations
- transformations
- libs/template
- templates
- default
- library
- template
- {{.project_name}}
- .vscode
- fixtures
- resources
- src
- {{.project_name_short}}_etl
- explorations
- transformations
- {{.project_name}}
- tests
- experimental-default-python-vnext
- lakeflow-pipelines
- template
- {{.project_name}}
- resources
- sample_job
- {{.project_name_short}}_etl
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
59 files changed
+500
-342
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 5 | + | |
8 | 6 | | |
9 | 7 | | |
10 | 8 | | |
| |||
46 | 44 | | |
47 | 45 | | |
48 | 46 | | |
49 | | - | |
| 47 | + | |
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
| |||
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
18 | 24 | | |
19 | 25 | | |
20 | 26 | | |
21 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 17 | + | |
| 18 | + | |
21 | 19 | | |
22 | 20 | | |
0 commit comments