pipeloom-databricks 0.8.0__tar.gz → 0.9.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/.gitignore +1 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/PKG-INFO +3 -3
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/pyproject.toml +2 -2
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/upload.py +50 -7
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/conftest.py +5 -11
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/goldens/by_folder.json +7 -6
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/goldens/by_folder.yml +7 -6
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/goldens/by_tag.json +8 -7
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/goldens/by_tag.yml +8 -7
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/goldens/job_cluster.json +42 -10
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/goldens/job_cluster.yml +35 -10
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/goldens/serverless.json +42 -10
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/goldens/serverless.yml +35 -10
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/goldens/submit.json +38 -8
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/test_deploy.py +91 -11
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/test_grouping.py +5 -4
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/test_render.py +1 -1
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/test_run.py +6 -4
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/test_secrets.py +2 -4
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/LICENSE +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/NOTICE +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/README.md +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/__init__.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/api.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/bundle.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/cli.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/client/__init__.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/client/connect.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/client/sdk.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/deploy.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/finalize_states.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/grouping.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/jobs_model.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/keys.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/options.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/py.typed +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/render.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/repair.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/run.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/secrets.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/serialize.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/spec.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/task.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/task_values.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/testing/__init__.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/testing/fake.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/testing/jobsim.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/unity.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/test_bundle.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/test_connect.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/test_deploy_cli.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/test_finalize_states.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/test_jobsim.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/test_keys.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/test_options.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/test_repair.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/test_run_cli.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/test_sdk_client.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/test_spec_import.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/test_task.py +0 -0
- {pipeloom_databricks-0.8.0 → pipeloom_databricks-0.9.0}/tests/test_unity.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: pipeloom-databricks
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.9.0
|
|
4
4
|
Summary: Databricks renderer for pipeloom: a compiled plan as Jobs settings JSON and bundle YAML.
|
|
5
5
|
Project-URL: Repository, https://github.com/emanuel-luis/pipeloom
|
|
6
6
|
Project-URL: Documentation, https://emanuel-luis.github.io/pipeloom/
|
|
@@ -21,8 +21,8 @@ Classifier: Programming Language :: Python :: 3.14
|
|
|
21
21
|
Classifier: Typing :: Typed
|
|
22
22
|
Requires-Python: >=3.11
|
|
23
23
|
Requires-Dist: databricks-sdk<1,>=0.50
|
|
24
|
-
Requires-Dist: pipeloom-spark~=0.
|
|
25
|
-
Requires-Dist: pipeloom~=0.
|
|
24
|
+
Requires-Dist: pipeloom-spark~=0.9.0
|
|
25
|
+
Requires-Dist: pipeloom~=0.9.0
|
|
26
26
|
Description-Content-Type: text/markdown
|
|
27
27
|
|
|
28
28
|
# pipeloom-databricks
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pipeloom-databricks"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.9.0"
|
|
8
8
|
description = "Databricks renderer for pipeloom: a compiled plan as Jobs settings JSON and bundle YAML."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.11"
|
|
@@ -23,7 +23,7 @@ classifiers = [
|
|
|
23
23
|
"Programming Language :: Python :: 3.14",
|
|
24
24
|
"Typing :: Typed",
|
|
25
25
|
]
|
|
26
|
-
dependencies = ["pipeloom~=0.
|
|
26
|
+
dependencies = ["pipeloom~=0.9.0", "pipeloom-spark~=0.9.0", "databricks-sdk>=0.50,<1"]
|
|
27
27
|
|
|
28
28
|
[project.urls]
|
|
29
29
|
Repository = "https://github.com/emanuel-luis/pipeloom"
|
|
@@ -15,9 +15,11 @@ from dataclasses import dataclass
|
|
|
15
15
|
from pathlib import Path
|
|
16
16
|
from typing import Final
|
|
17
17
|
|
|
18
|
+
import yaml
|
|
19
|
+
|
|
18
20
|
from pipeloom.diagnostics import Location, Report, Severity
|
|
19
21
|
from pipeloom.plan.manifest import manifest_bytes
|
|
20
|
-
from pipeloom.plan.model import Plan
|
|
22
|
+
from pipeloom.plan.model import Plan, PythonBody
|
|
21
23
|
from pipeloom_databricks.client import ApiError, DatabricksClient
|
|
22
24
|
|
|
23
25
|
MAX_FILE_BYTES: Final = 10 * 1024 * 1024
|
|
@@ -58,7 +60,8 @@ def collect(
|
|
|
58
60
|
"""The files to upload, or None with PLD012 for each file that cannot be a plain file.
|
|
59
61
|
|
|
60
62
|
The set is `pipeloom.yml`, the model and source files of the plan, the `*.py` files below
|
|
61
|
-
`python_paths` and
|
|
63
|
+
`python_paths`, the `*.yml` and `*.yaml` files below `model_paths` (properties files) and
|
|
64
|
+
the stable manifest. Below `python_paths` the walk skips dot entries, the
|
|
62
65
|
folders in `SKIPPED_FOLDERS`, any folder holding `pyvenv.cfg` (a virtual environment) and the
|
|
63
66
|
artifacts root, so data files, wheels and credentials of the project folder stay local.
|
|
64
67
|
"""
|
|
@@ -76,16 +79,45 @@ def collect(
|
|
|
76
79
|
found.setdefault(rel, path)
|
|
77
80
|
|
|
78
81
|
add(root / CONFIG_FILE)
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
for
|
|
82
|
+
# Modules of model_packages are installed in the job environment (ADR-0050 point 17).
|
|
83
|
+
packages = _config_list(root, "model_packages", [])
|
|
84
|
+
for node in plan.nodes.values():
|
|
85
|
+
module = node.body.callable.partition(":")[0] if isinstance(node.body, PythonBody) else ""
|
|
86
|
+
if not any(module == p or module.startswith(p + ".") for p in packages):
|
|
87
|
+
add(root / node.file)
|
|
88
|
+
for source in plan.sources.values():
|
|
89
|
+
add(root / source.file)
|
|
90
|
+
# Properties YAML under model_paths, for parity with the project folder (ADR-0050 point 17).
|
|
91
|
+
entries: list[tuple[str, tuple[str, ...]]] = [(e, (".py",)) for e in plan.metadata.python_paths]
|
|
92
|
+
properties = (".yml", ".yaml")
|
|
93
|
+
for entry in _config_list(root, "model_paths", ["models"]):
|
|
94
|
+
if "*" not in entry:
|
|
95
|
+
entries.append((entry, properties))
|
|
96
|
+
continue
|
|
97
|
+
# A glob entry, expanded as discovery expands it (`discovery.files.find_files`).
|
|
98
|
+
for match in sorted(m.resolve() for m in root.glob(entry)):
|
|
99
|
+
if match.is_dir():
|
|
100
|
+
entries.append((str(match), properties))
|
|
101
|
+
elif (
|
|
102
|
+
match.name.endswith(properties)
|
|
103
|
+
and match.is_relative_to(root)
|
|
104
|
+
and not any(
|
|
105
|
+
p.startswith(".") or p in SKIPPED_FOLDERS
|
|
106
|
+
for p in match.relative_to(root).parts[:-1]
|
|
107
|
+
)
|
|
108
|
+
):
|
|
109
|
+
add(match)
|
|
110
|
+
for entry, suffixes in entries:
|
|
82
111
|
base = (root / entry).resolve()
|
|
83
112
|
if not base.is_dir():
|
|
84
113
|
continue
|
|
85
114
|
try:
|
|
86
115
|
base.relative_to(root)
|
|
87
116
|
except ValueError:
|
|
88
|
-
|
|
117
|
+
if suffixes == (".py",):
|
|
118
|
+
report.add(
|
|
119
|
+
"PLD012", f"python_paths entry '{entry}' lies outside the project folder"
|
|
120
|
+
)
|
|
89
121
|
continue
|
|
90
122
|
for folder, dirs, names in os.walk(base):
|
|
91
123
|
dirs[:] = sorted(
|
|
@@ -97,7 +129,7 @@ def collect(
|
|
|
97
129
|
and (skip is None or (Path(folder) / d).resolve() != skip)
|
|
98
130
|
)
|
|
99
131
|
for name in sorted(names):
|
|
100
|
-
if name.endswith(
|
|
132
|
+
if name.endswith(suffixes) and not name.startswith("."):
|
|
101
133
|
add(Path(folder) / name)
|
|
102
134
|
|
|
103
135
|
files: list[tuple[str, bytes]] = []
|
|
@@ -112,6 +144,17 @@ def collect(
|
|
|
112
144
|
return Payload(ordered, _digest(ordered))
|
|
113
145
|
|
|
114
146
|
|
|
147
|
+
def _config_list(root: Path, key: str, default: list[str]) -> list[str]:
|
|
148
|
+
"""A list setting of pipeloom.yml (`model_paths`, `model_packages`); the plan does not record
|
|
149
|
+
them."""
|
|
150
|
+
try:
|
|
151
|
+
doc = yaml.safe_load((root / CONFIG_FILE).read_bytes())
|
|
152
|
+
except (OSError, yaml.YAMLError):
|
|
153
|
+
return []
|
|
154
|
+
paths = doc.get(key) if isinstance(doc, dict) else None
|
|
155
|
+
return [str(p) for p in paths] if isinstance(paths, list) else default
|
|
156
|
+
|
|
157
|
+
|
|
115
158
|
def _read(path: Path, rel: str, report: Report) -> bytes | None:
|
|
116
159
|
def bad(message: str, hint: str | None = None) -> None:
|
|
117
160
|
report.add("PLD012", message, hint=hint, location=Location(file=rel))
|
|
@@ -11,6 +11,7 @@ from urllib.parse import quote
|
|
|
11
11
|
|
|
12
12
|
import pytest
|
|
13
13
|
from pydantic import JsonValue
|
|
14
|
+
from tests.conftest import make_project
|
|
14
15
|
|
|
15
16
|
from pipeloom.api import Project, ProjectOptions
|
|
16
17
|
from pipeloom.diagnostics import Report
|
|
@@ -125,15 +126,11 @@ def models_plan(tmp_path: Path) -> Callable[[Mapping[str, str]], Plan]:
|
|
|
125
126
|
"""
|
|
126
127
|
|
|
127
128
|
def make(files: Mapping[str, str]) -> Plan:
|
|
128
|
-
|
|
129
|
-
target = tmp_path / rel
|
|
130
|
-
target.parent.mkdir(parents=True, exist_ok=True)
|
|
131
|
-
target.write_text(text, encoding="utf-8")
|
|
132
|
-
(tmp_path / "pipeloom.yml").write_text(
|
|
129
|
+
project = (
|
|
133
130
|
"config_version: 1\nname: gen\nengine: {kind: memory}\ncatalog: {kind: memory}\n"
|
|
134
|
-
"defaults:\n models: {materialized: table}\ntargets:\n ci:\n naming: {kind: none}\n"
|
|
135
|
-
encoding="utf-8",
|
|
131
|
+
"defaults:\n models: {materialized: table}\ntargets:\n ci:\n naming: {kind: none}\n"
|
|
136
132
|
)
|
|
133
|
+
make_project(tmp_path, {**files, "pipeloom.yml": project})
|
|
137
134
|
return compile_dir(tmp_path)
|
|
138
135
|
|
|
139
136
|
return make
|
|
@@ -227,10 +224,7 @@ def sim(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> Callable[..., Sim]:
|
|
|
227
224
|
),
|
|
228
225
|
"models/m.yml": SIM_MODELS,
|
|
229
226
|
}
|
|
230
|
-
|
|
231
|
-
path = root / rel
|
|
232
|
-
path.parent.mkdir(parents=True, exist_ok=True)
|
|
233
|
-
path.write_bytes(text.encode("utf-8"))
|
|
227
|
+
make_project(root, files)
|
|
234
228
|
plan = compile_dir(root, "prod")
|
|
235
229
|
manifest = tmp_path / "manifest.json"
|
|
236
230
|
manifest.write_bytes(manifest_bytes(plan, stable=True))
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"name": "pipeloom_shop_main_ci",
|
|
3
3
|
"tags": {
|
|
4
4
|
"pipeloom_job": "shop.main.ci",
|
|
5
|
-
"pipeloom_plan_hash": "
|
|
6
|
-
"pipeloom_settings_hash": "
|
|
5
|
+
"pipeloom_plan_hash": "f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0",
|
|
6
|
+
"pipeloom_settings_hash": "a124c9b6cd0fc46a2f4d391d4cc8e4b3fea142af59667d7fc2d7f3fe329cd9cc",
|
|
7
7
|
"pipeloom_version": "1.2.3"
|
|
8
8
|
},
|
|
9
9
|
"parameters": [
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"--target=ci",
|
|
52
52
|
"--pipeline=main",
|
|
53
53
|
"--group=dir_models_marts",
|
|
54
|
-
"--plan-hash=
|
|
54
|
+
"--plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0",
|
|
55
55
|
"--run-id={{job.parameters.pipeloom_run_id}}",
|
|
56
56
|
"--full-refresh={{job.parameters.full_refresh}}",
|
|
57
57
|
"--job-id={{job.id}}",
|
|
@@ -61,7 +61,8 @@
|
|
|
61
61
|
"--start-ms={{job.start_time.timestamp_ms}}"
|
|
62
62
|
]
|
|
63
63
|
},
|
|
64
|
-
"max_retries":
|
|
64
|
+
"max_retries": 1,
|
|
65
|
+
"min_retry_interval_millis": 1000,
|
|
65
66
|
"disable_auto_optimization": true
|
|
66
67
|
},
|
|
67
68
|
{
|
|
@@ -77,7 +78,7 @@
|
|
|
77
78
|
"--target=ci",
|
|
78
79
|
"--pipeline=main",
|
|
79
80
|
"--group=dir_models_staging",
|
|
80
|
-
"--plan-hash=
|
|
81
|
+
"--plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0",
|
|
81
82
|
"--run-id={{job.parameters.pipeloom_run_id}}",
|
|
82
83
|
"--full-refresh={{job.parameters.full_refresh}}",
|
|
83
84
|
"--job-id={{job.id}}",
|
|
@@ -108,7 +109,7 @@
|
|
|
108
109
|
"--manifest=/Workspace/pipeloom/shop/manifest.json",
|
|
109
110
|
"--target=ci",
|
|
110
111
|
"--pipeline=main",
|
|
111
|
-
"--plan-hash=
|
|
112
|
+
"--plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0",
|
|
112
113
|
"--run-id={{job.parameters.pipeloom_run_id}}",
|
|
113
114
|
"--full-refresh={{job.parameters.full_refresh}}",
|
|
114
115
|
"--job-id={{job.id}}",
|
|
@@ -5,8 +5,8 @@ resources:
|
|
|
5
5
|
name: pipeloom_shop_main_ci
|
|
6
6
|
tags:
|
|
7
7
|
pipeloom_job: shop.main.ci
|
|
8
|
-
pipeloom_plan_hash:
|
|
9
|
-
pipeloom_settings_hash:
|
|
8
|
+
pipeloom_plan_hash: f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0
|
|
9
|
+
pipeloom_settings_hash: a124c9b6cd0fc46a2f4d391d4cc8e4b3fea142af59667d7fc2d7f3fe329cd9cc
|
|
10
10
|
pipeloom_version: 1.2.3
|
|
11
11
|
parameters:
|
|
12
12
|
- name: pipeloom_run_id
|
|
@@ -38,7 +38,7 @@ resources:
|
|
|
38
38
|
- --target=ci
|
|
39
39
|
- --pipeline=main
|
|
40
40
|
- --group=dir_models_marts
|
|
41
|
-
- --plan-hash=
|
|
41
|
+
- --plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0
|
|
42
42
|
- --run-id={{job.parameters.pipeloom_run_id}}
|
|
43
43
|
- --full-refresh={{job.parameters.full_refresh}}
|
|
44
44
|
- --job-id={{job.id}}
|
|
@@ -46,7 +46,8 @@ resources:
|
|
|
46
46
|
- --task-key={{task.name}}
|
|
47
47
|
- --task-run-id={{task.run_id}}
|
|
48
48
|
- --start-ms={{job.start_time.timestamp_ms}}
|
|
49
|
-
max_retries:
|
|
49
|
+
max_retries: 1
|
|
50
|
+
min_retry_interval_millis: 1000
|
|
50
51
|
disable_auto_optimization: true
|
|
51
52
|
- task_key: dir_models_staging
|
|
52
53
|
environment_key: pipeloom_default
|
|
@@ -60,7 +61,7 @@ resources:
|
|
|
60
61
|
- --target=ci
|
|
61
62
|
- --pipeline=main
|
|
62
63
|
- --group=dir_models_staging
|
|
63
|
-
- --plan-hash=
|
|
64
|
+
- --plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0
|
|
64
65
|
- --run-id={{job.parameters.pipeloom_run_id}}
|
|
65
66
|
- --full-refresh={{job.parameters.full_refresh}}
|
|
66
67
|
- --job-id={{job.id}}
|
|
@@ -84,7 +85,7 @@ resources:
|
|
|
84
85
|
- --manifest=/Workspace/pipeloom/shop/manifest.json
|
|
85
86
|
- --target=ci
|
|
86
87
|
- --pipeline=main
|
|
87
|
-
- --plan-hash=
|
|
88
|
+
- --plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0
|
|
88
89
|
- --run-id={{job.parameters.pipeloom_run_id}}
|
|
89
90
|
- --full-refresh={{job.parameters.full_refresh}}
|
|
90
91
|
- --job-id={{job.id}}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"name": "pipeloom_shop_main_ci",
|
|
3
3
|
"tags": {
|
|
4
4
|
"pipeloom_job": "shop.main.ci",
|
|
5
|
-
"pipeloom_plan_hash": "
|
|
6
|
-
"pipeloom_settings_hash": "
|
|
5
|
+
"pipeloom_plan_hash": "f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0",
|
|
6
|
+
"pipeloom_settings_hash": "884bfdfc80a14f34df36eca61a212dd2fc13263110c0f933537773b837720f68",
|
|
7
7
|
"pipeloom_version": "1.2.3"
|
|
8
8
|
},
|
|
9
9
|
"parameters": [
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"--target=ci",
|
|
52
52
|
"--pipeline=main",
|
|
53
53
|
"--group=tag_mart",
|
|
54
|
-
"--plan-hash=
|
|
54
|
+
"--plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0",
|
|
55
55
|
"--run-id={{job.parameters.pipeloom_run_id}}",
|
|
56
56
|
"--full-refresh={{job.parameters.full_refresh}}",
|
|
57
57
|
"--job-id={{job.id}}",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"--target=ci",
|
|
78
78
|
"--pipeline=main",
|
|
79
79
|
"--group=tag_staging",
|
|
80
|
-
"--plan-hash=
|
|
80
|
+
"--plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0",
|
|
81
81
|
"--run-id={{job.parameters.pipeloom_run_id}}",
|
|
82
82
|
"--full-refresh={{job.parameters.full_refresh}}",
|
|
83
83
|
"--job-id={{job.id}}",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"--target=ci",
|
|
109
109
|
"--pipeline=main",
|
|
110
110
|
"--group=tag_untagged",
|
|
111
|
-
"--plan-hash=
|
|
111
|
+
"--plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0",
|
|
112
112
|
"--run-id={{job.parameters.pipeloom_run_id}}",
|
|
113
113
|
"--full-refresh={{job.parameters.full_refresh}}",
|
|
114
114
|
"--job-id={{job.id}}",
|
|
@@ -118,7 +118,8 @@
|
|
|
118
118
|
"--start-ms={{job.start_time.timestamp_ms}}"
|
|
119
119
|
]
|
|
120
120
|
},
|
|
121
|
-
"max_retries":
|
|
121
|
+
"max_retries": 1,
|
|
122
|
+
"min_retry_interval_millis": 1000,
|
|
122
123
|
"disable_auto_optimization": true
|
|
123
124
|
},
|
|
124
125
|
{
|
|
@@ -139,7 +140,7 @@
|
|
|
139
140
|
"--manifest=/Workspace/pipeloom/shop/manifest.json",
|
|
140
141
|
"--target=ci",
|
|
141
142
|
"--pipeline=main",
|
|
142
|
-
"--plan-hash=
|
|
143
|
+
"--plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0",
|
|
143
144
|
"--run-id={{job.parameters.pipeloom_run_id}}",
|
|
144
145
|
"--full-refresh={{job.parameters.full_refresh}}",
|
|
145
146
|
"--job-id={{job.id}}",
|
|
@@ -5,8 +5,8 @@ resources:
|
|
|
5
5
|
name: pipeloom_shop_main_ci
|
|
6
6
|
tags:
|
|
7
7
|
pipeloom_job: shop.main.ci
|
|
8
|
-
pipeloom_plan_hash:
|
|
9
|
-
pipeloom_settings_hash:
|
|
8
|
+
pipeloom_plan_hash: f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0
|
|
9
|
+
pipeloom_settings_hash: 884bfdfc80a14f34df36eca61a212dd2fc13263110c0f933537773b837720f68
|
|
10
10
|
pipeloom_version: 1.2.3
|
|
11
11
|
parameters:
|
|
12
12
|
- name: pipeloom_run_id
|
|
@@ -38,7 +38,7 @@ resources:
|
|
|
38
38
|
- --target=ci
|
|
39
39
|
- --pipeline=main
|
|
40
40
|
- --group=tag_mart
|
|
41
|
-
- --plan-hash=
|
|
41
|
+
- --plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0
|
|
42
42
|
- --run-id={{job.parameters.pipeloom_run_id}}
|
|
43
43
|
- --full-refresh={{job.parameters.full_refresh}}
|
|
44
44
|
- --job-id={{job.id}}
|
|
@@ -60,7 +60,7 @@ resources:
|
|
|
60
60
|
- --target=ci
|
|
61
61
|
- --pipeline=main
|
|
62
62
|
- --group=tag_staging
|
|
63
|
-
- --plan-hash=
|
|
63
|
+
- --plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0
|
|
64
64
|
- --run-id={{job.parameters.pipeloom_run_id}}
|
|
65
65
|
- --full-refresh={{job.parameters.full_refresh}}
|
|
66
66
|
- --job-id={{job.id}}
|
|
@@ -84,7 +84,7 @@ resources:
|
|
|
84
84
|
- --target=ci
|
|
85
85
|
- --pipeline=main
|
|
86
86
|
- --group=tag_untagged
|
|
87
|
-
- --plan-hash=
|
|
87
|
+
- --plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0
|
|
88
88
|
- --run-id={{job.parameters.pipeloom_run_id}}
|
|
89
89
|
- --full-refresh={{job.parameters.full_refresh}}
|
|
90
90
|
- --job-id={{job.id}}
|
|
@@ -92,7 +92,8 @@ resources:
|
|
|
92
92
|
- --task-key={{task.name}}
|
|
93
93
|
- --task-run-id={{task.run_id}}
|
|
94
94
|
- --start-ms={{job.start_time.timestamp_ms}}
|
|
95
|
-
max_retries:
|
|
95
|
+
max_retries: 1
|
|
96
|
+
min_retry_interval_millis: 1000
|
|
96
97
|
disable_auto_optimization: true
|
|
97
98
|
- task_key: pipeloom__finalize
|
|
98
99
|
depends_on:
|
|
@@ -108,7 +109,7 @@ resources:
|
|
|
108
109
|
- --manifest=/Workspace/pipeloom/shop/manifest.json
|
|
109
110
|
- --target=ci
|
|
110
111
|
- --pipeline=main
|
|
111
|
-
- --plan-hash=
|
|
112
|
+
- --plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0
|
|
112
113
|
- --run-id={{job.parameters.pipeloom_run_id}}
|
|
113
114
|
- --full-refresh={{job.parameters.full_refresh}}
|
|
114
115
|
- --job-id={{job.id}}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"name": "pipeloom_shop_main_ci",
|
|
3
3
|
"tags": {
|
|
4
4
|
"pipeloom_job": "shop.main.ci",
|
|
5
|
-
"pipeloom_plan_hash": "
|
|
6
|
-
"pipeloom_settings_hash": "
|
|
5
|
+
"pipeloom_plan_hash": "f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0",
|
|
6
|
+
"pipeloom_settings_hash": "abd9ed0306f90b72ca440370f077ff92ed0c2e85a60f9b39d5d364bffb1e50b7",
|
|
7
7
|
"pipeloom_version": "1.2.3",
|
|
8
8
|
"team": "data"
|
|
9
9
|
},
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"--target=ci",
|
|
78
78
|
"--pipeline=main",
|
|
79
79
|
"--unit=dim_customers",
|
|
80
|
-
"--plan-hash=
|
|
80
|
+
"--plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0",
|
|
81
81
|
"--run-id={{job.parameters.pipeloom_run_id}}",
|
|
82
82
|
"--full-refresh={{job.parameters.full_refresh}}",
|
|
83
83
|
"--job-id={{job.id}}",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"--target=ci",
|
|
126
126
|
"--pipeline=main",
|
|
127
127
|
"--unit=fct_orders",
|
|
128
|
-
"--plan-hash=
|
|
128
|
+
"--plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0",
|
|
129
129
|
"--run-id={{job.parameters.pipeloom_run_id}}",
|
|
130
130
|
"--full-refresh={{job.parameters.full_refresh}}",
|
|
131
131
|
"--job-id={{job.id}}",
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"--target=ci",
|
|
156
156
|
"--pipeline=main",
|
|
157
157
|
"--unit=rpt_revenue",
|
|
158
|
-
"--plan-hash=
|
|
158
|
+
"--plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0",
|
|
159
159
|
"--run-id={{job.parameters.pipeloom_run_id}}",
|
|
160
160
|
"--full-refresh={{job.parameters.full_refresh}}",
|
|
161
161
|
"--job-id={{job.id}}",
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
"--target=ci",
|
|
182
182
|
"--pipeline=main",
|
|
183
183
|
"--unit=stg_customers",
|
|
184
|
-
"--plan-hash=
|
|
184
|
+
"--plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0",
|
|
185
185
|
"--run-id={{job.parameters.pipeloom_run_id}}",
|
|
186
186
|
"--full-refresh={{job.parameters.full_refresh}}",
|
|
187
187
|
"--job-id={{job.id}}",
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
"--target=ci",
|
|
208
208
|
"--pipeline=main",
|
|
209
209
|
"--unit=stg_orders",
|
|
210
|
-
"--plan-hash=
|
|
210
|
+
"--plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0",
|
|
211
211
|
"--run-id={{job.parameters.pipeloom_run_id}}",
|
|
212
212
|
"--full-refresh={{job.parameters.full_refresh}}",
|
|
213
213
|
"--job-id={{job.id}}",
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
"--target=ci",
|
|
234
234
|
"--pipeline=main",
|
|
235
235
|
"--unit=stg_payments",
|
|
236
|
-
"--plan-hash=
|
|
236
|
+
"--plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0",
|
|
237
237
|
"--run-id={{job.parameters.pipeloom_run_id}}",
|
|
238
238
|
"--full-refresh={{job.parameters.full_refresh}}",
|
|
239
239
|
"--job-id={{job.id}}",
|
|
@@ -246,6 +246,38 @@
|
|
|
246
246
|
"max_retries": 0,
|
|
247
247
|
"disable_auto_optimization": true
|
|
248
248
|
},
|
|
249
|
+
{
|
|
250
|
+
"task_key": "top_customers",
|
|
251
|
+
"depends_on": [
|
|
252
|
+
{
|
|
253
|
+
"task_key": "rpt_revenue"
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
"environment_key": "pipeloom_default",
|
|
257
|
+
"python_wheel_task": {
|
|
258
|
+
"package_name": "pipeloom_databricks",
|
|
259
|
+
"entry_point": "pipeloom_databricks_task",
|
|
260
|
+
"parameters": [
|
|
261
|
+
"unit",
|
|
262
|
+
"--project-dir=/Workspace/pipeloom/shop",
|
|
263
|
+
"--manifest=/Workspace/pipeloom/shop/manifest.json",
|
|
264
|
+
"--target=ci",
|
|
265
|
+
"--pipeline=main",
|
|
266
|
+
"--unit=top_customers",
|
|
267
|
+
"--plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0",
|
|
268
|
+
"--run-id={{job.parameters.pipeloom_run_id}}",
|
|
269
|
+
"--full-refresh={{job.parameters.full_refresh}}",
|
|
270
|
+
"--job-id={{job.id}}",
|
|
271
|
+
"--job-run-id={{job.run_id}}",
|
|
272
|
+
"--task-key={{task.name}}",
|
|
273
|
+
"--task-run-id={{task.run_id}}",
|
|
274
|
+
"--start-ms={{job.start_time.timestamp_ms}}"
|
|
275
|
+
]
|
|
276
|
+
},
|
|
277
|
+
"max_retries": 1,
|
|
278
|
+
"min_retry_interval_millis": 1000,
|
|
279
|
+
"disable_auto_optimization": true
|
|
280
|
+
},
|
|
249
281
|
{
|
|
250
282
|
"task_key": "pipeloom__finalize",
|
|
251
283
|
"depends_on": [
|
|
@@ -253,7 +285,7 @@
|
|
|
253
285
|
"task_key": "dim_customers"
|
|
254
286
|
},
|
|
255
287
|
{
|
|
256
|
-
"task_key": "
|
|
288
|
+
"task_key": "top_customers"
|
|
257
289
|
}
|
|
258
290
|
],
|
|
259
291
|
"run_if": "ALL_DONE",
|
|
@@ -267,7 +299,7 @@
|
|
|
267
299
|
"--manifest=/Workspace/pipeloom/shop/manifest.json",
|
|
268
300
|
"--target=ci",
|
|
269
301
|
"--pipeline=main",
|
|
270
|
-
"--plan-hash=
|
|
302
|
+
"--plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0",
|
|
271
303
|
"--run-id={{job.parameters.pipeloom_run_id}}",
|
|
272
304
|
"--full-refresh={{job.parameters.full_refresh}}",
|
|
273
305
|
"--job-id={{job.id}}",
|
|
@@ -5,8 +5,8 @@ resources:
|
|
|
5
5
|
name: pipeloom_shop_main_ci
|
|
6
6
|
tags:
|
|
7
7
|
pipeloom_job: shop.main.ci
|
|
8
|
-
pipeloom_plan_hash:
|
|
9
|
-
pipeloom_settings_hash:
|
|
8
|
+
pipeloom_plan_hash: f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0
|
|
9
|
+
pipeloom_settings_hash: abd9ed0306f90b72ca440370f077ff92ed0c2e85a60f9b39d5d364bffb1e50b7
|
|
10
10
|
pipeloom_version: 1.2.3
|
|
11
11
|
team: data
|
|
12
12
|
parameters:
|
|
@@ -51,7 +51,7 @@ resources:
|
|
|
51
51
|
- --target=ci
|
|
52
52
|
- --pipeline=main
|
|
53
53
|
- --unit=dim_customers
|
|
54
|
-
- --plan-hash=
|
|
54
|
+
- --plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0
|
|
55
55
|
- --run-id={{job.parameters.pipeloom_run_id}}
|
|
56
56
|
- --full-refresh={{job.parameters.full_refresh}}
|
|
57
57
|
- --job-id={{job.id}}
|
|
@@ -81,7 +81,7 @@ resources:
|
|
|
81
81
|
- --target=ci
|
|
82
82
|
- --pipeline=main
|
|
83
83
|
- --unit=fct_orders
|
|
84
|
-
- --plan-hash=
|
|
84
|
+
- --plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0
|
|
85
85
|
- --run-id={{job.parameters.pipeloom_run_id}}
|
|
86
86
|
- --full-refresh={{job.parameters.full_refresh}}
|
|
87
87
|
- --job-id={{job.id}}
|
|
@@ -104,7 +104,7 @@ resources:
|
|
|
104
104
|
- --target=ci
|
|
105
105
|
- --pipeline=main
|
|
106
106
|
- --unit=rpt_revenue
|
|
107
|
-
- --plan-hash=
|
|
107
|
+
- --plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0
|
|
108
108
|
- --run-id={{job.parameters.pipeloom_run_id}}
|
|
109
109
|
- --full-refresh={{job.parameters.full_refresh}}
|
|
110
110
|
- --job-id={{job.id}}
|
|
@@ -126,7 +126,7 @@ resources:
|
|
|
126
126
|
- --target=ci
|
|
127
127
|
- --pipeline=main
|
|
128
128
|
- --unit=stg_customers
|
|
129
|
-
- --plan-hash=
|
|
129
|
+
- --plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0
|
|
130
130
|
- --run-id={{job.parameters.pipeloom_run_id}}
|
|
131
131
|
- --full-refresh={{job.parameters.full_refresh}}
|
|
132
132
|
- --job-id={{job.id}}
|
|
@@ -148,7 +148,7 @@ resources:
|
|
|
148
148
|
- --target=ci
|
|
149
149
|
- --pipeline=main
|
|
150
150
|
- --unit=stg_orders
|
|
151
|
-
- --plan-hash=
|
|
151
|
+
- --plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0
|
|
152
152
|
- --run-id={{job.parameters.pipeloom_run_id}}
|
|
153
153
|
- --full-refresh={{job.parameters.full_refresh}}
|
|
154
154
|
- --job-id={{job.id}}
|
|
@@ -170,7 +170,7 @@ resources:
|
|
|
170
170
|
- --target=ci
|
|
171
171
|
- --pipeline=main
|
|
172
172
|
- --unit=stg_payments
|
|
173
|
-
- --plan-hash=
|
|
173
|
+
- --plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0
|
|
174
174
|
- --run-id={{job.parameters.pipeloom_run_id}}
|
|
175
175
|
- --full-refresh={{job.parameters.full_refresh}}
|
|
176
176
|
- --job-id={{job.id}}
|
|
@@ -180,10 +180,35 @@ resources:
|
|
|
180
180
|
- --start-ms={{job.start_time.timestamp_ms}}
|
|
181
181
|
max_retries: 0
|
|
182
182
|
disable_auto_optimization: true
|
|
183
|
+
- task_key: top_customers
|
|
184
|
+
depends_on:
|
|
185
|
+
- task_key: rpt_revenue
|
|
186
|
+
environment_key: pipeloom_default
|
|
187
|
+
python_wheel_task:
|
|
188
|
+
package_name: pipeloom_databricks
|
|
189
|
+
entry_point: pipeloom_databricks_task
|
|
190
|
+
parameters:
|
|
191
|
+
- unit
|
|
192
|
+
- --project-dir=/Workspace/pipeloom/shop
|
|
193
|
+
- --manifest=/Workspace/pipeloom/shop/manifest.json
|
|
194
|
+
- --target=ci
|
|
195
|
+
- --pipeline=main
|
|
196
|
+
- --unit=top_customers
|
|
197
|
+
- --plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0
|
|
198
|
+
- --run-id={{job.parameters.pipeloom_run_id}}
|
|
199
|
+
- --full-refresh={{job.parameters.full_refresh}}
|
|
200
|
+
- --job-id={{job.id}}
|
|
201
|
+
- --job-run-id={{job.run_id}}
|
|
202
|
+
- --task-key={{task.name}}
|
|
203
|
+
- --task-run-id={{task.run_id}}
|
|
204
|
+
- --start-ms={{job.start_time.timestamp_ms}}
|
|
205
|
+
max_retries: 1
|
|
206
|
+
min_retry_interval_millis: 1000
|
|
207
|
+
disable_auto_optimization: true
|
|
183
208
|
- task_key: pipeloom__finalize
|
|
184
209
|
depends_on:
|
|
185
210
|
- task_key: dim_customers
|
|
186
|
-
- task_key:
|
|
211
|
+
- task_key: top_customers
|
|
187
212
|
run_if: ALL_DONE
|
|
188
213
|
environment_key: pipeloom_default
|
|
189
214
|
python_wheel_task:
|
|
@@ -195,7 +220,7 @@ resources:
|
|
|
195
220
|
- --manifest=/Workspace/pipeloom/shop/manifest.json
|
|
196
221
|
- --target=ci
|
|
197
222
|
- --pipeline=main
|
|
198
|
-
- --plan-hash=
|
|
223
|
+
- --plan-hash=f05fee053db88c1a06b6b4bcd2b2732330c5b703fb2c4a4678480edb542cc7a0
|
|
199
224
|
- --run-id={{job.parameters.pipeloom_run_id}}
|
|
200
225
|
- --full-refresh={{job.parameters.full_refresh}}
|
|
201
226
|
- --job-id={{job.id}}
|