Skip to content

Commit e7e4acf

Browse files
Update based on new templates and add a script for future updates (#93)
This updates to the latest templates, adds `lakeflow-pipelines-`{`python`,`sql`}`, and a script for future updates under `scripts/`. Reviewers, please review the script + whether references to personal addresses like `lennart.kats@databricks.com` are properly scrubbed.
1 parent a2b7d4e commit e7e4acf

65 files changed

Lines changed: 805 additions & 743 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.ruff.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ exclude = [
55
"default_python/*",
66
"default_sql/*",
77
"mlops_stacks/*",
8+
"lakeflow_pipelines_python/*",
89
]

contrib/data_engineering/README.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
11
# data_engineering
22

3-
The 'data_engineering' project was generated by using the contrib/data-engineering template.
4-
5-
Learn more about this template here:
6-
7-
https://github.com/databricks/bundle-examples/tree/main/contrib/templates/data-engineering
8-
9-
You can re-create this bundle by running the following commands:
10-
11-
```
12-
$ databricks bundle init https://github.com/databricks/bundle-examples --template-dir contrib/templates/data-engineering
13-
# (answer prompts, call the project data_engineering)
14-
$ cd data_engineering
15-
$ uv run add-asset
16-
# (select etl-pipeline)
17-
```
3+
The 'data_engineering' project was generated by using the data-engineering template.
184

195
## Setup
206

contrib/data_engineering/assets/etl_pipeline/__init__.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

contrib/data_engineering/assets/etl_pipeline/etl_pipeline.pipeline.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

contrib/data_engineering/assets/etl_pipeline/sources/dev/taxis.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

contrib/data_engineering/assets/etl_pipeline/sources/prod/taxis.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

contrib/data_engineering/assets/etl_pipeline/tests/taxi_stats_test.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

contrib/data_engineering/assets/etl_pipeline/transformations/__init__.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

contrib/data_engineering/assets/etl_pipeline/transformations/taxi_stats.py

Lines changed: 0 additions & 20 deletions
This file was deleted.

contrib/data_engineering/databricks.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,21 @@ targets:
2626
workspace:
2727
host: https://company.databricks.com
2828
variables:
29-
catalog: main
29+
catalog: catalog
3030
schema: ${workspace.current_user.short_name}
3131
notifications: []
3232
prod:
3333
mode: production
3434
workspace:
3535
host: https://company.databricks.com
36-
# We explicitly specify /Workspace/Users/user@databricks.com to make sure we only have a single copy.
37-
root_path: /Workspace/Users/user@databricks.com/.bundle/${bundle.name}/${bundle.target}
36+
# We explicitly specify /Workspace/Users/user@company.com to make sure we only have a single copy.
37+
root_path: /Workspace/Users/user@company.com/.bundle/${bundle.name}/${bundle.target}
3838
permissions:
39-
- user_name: user@databricks.com
39+
- user_name: user@company.com
4040
level: CAN_MANAGE
4141
run_as:
42-
user_name: user@databricks.com
42+
user_name: user@company.com
4343
variables:
44-
catalog: main
44+
catalog: catalog
4545
schema: default
46-
notifications: [user@databricks.com]
46+
notifications: [user@company.com]

0 commit comments

Comments
 (0)