pipeloom-databricks 0.7.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.
Files changed (61) hide show
  1. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/.gitignore +2 -0
  2. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/PKG-INFO +20 -10
  3. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/README.md +17 -7
  4. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/pyproject.toml +2 -2
  5. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/upload.py +50 -7
  6. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/conftest.py +5 -11
  7. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/goldens/by_folder.json +7 -6
  8. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/goldens/by_folder.yml +7 -6
  9. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/goldens/by_tag.json +8 -7
  10. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/goldens/by_tag.yml +8 -7
  11. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/goldens/job_cluster.json +42 -10
  12. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/goldens/job_cluster.yml +35 -10
  13. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/goldens/serverless.json +42 -10
  14. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/goldens/serverless.yml +35 -10
  15. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/goldens/submit.json +38 -8
  16. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/test_deploy.py +91 -11
  17. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/test_grouping.py +5 -4
  18. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/test_render.py +1 -1
  19. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/test_run.py +6 -4
  20. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/test_secrets.py +2 -4
  21. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/LICENSE +0 -0
  22. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/NOTICE +0 -0
  23. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/__init__.py +0 -0
  24. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/api.py +0 -0
  25. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/bundle.py +0 -0
  26. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/cli.py +0 -0
  27. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/client/__init__.py +0 -0
  28. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/client/connect.py +0 -0
  29. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/client/sdk.py +0 -0
  30. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/deploy.py +0 -0
  31. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/finalize_states.py +0 -0
  32. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/grouping.py +0 -0
  33. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/jobs_model.py +0 -0
  34. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/keys.py +0 -0
  35. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/options.py +0 -0
  36. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/py.typed +0 -0
  37. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/render.py +0 -0
  38. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/repair.py +0 -0
  39. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/run.py +0 -0
  40. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/secrets.py +0 -0
  41. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/serialize.py +0 -0
  42. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/spec.py +0 -0
  43. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/task.py +0 -0
  44. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/task_values.py +0 -0
  45. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/testing/__init__.py +0 -0
  46. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/testing/fake.py +0 -0
  47. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/testing/jobsim.py +0 -0
  48. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/src/pipeloom_databricks/unity.py +0 -0
  49. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/test_bundle.py +0 -0
  50. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/test_connect.py +0 -0
  51. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/test_deploy_cli.py +0 -0
  52. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/test_finalize_states.py +0 -0
  53. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/test_jobsim.py +0 -0
  54. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/test_keys.py +0 -0
  55. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/test_options.py +0 -0
  56. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/test_repair.py +0 -0
  57. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/test_run_cli.py +0 -0
  58. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/test_sdk_client.py +0 -0
  59. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/test_spec_import.py +0 -0
  60. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/test_task.py +0 -0
  61. {pipeloom_databricks-0.7.0 → pipeloom_databricks-0.9.0}/tests/test_unity.py +0 -0
@@ -14,3 +14,5 @@ site/
14
14
  target/
15
15
  .pipeloom/
16
16
  .env
17
+ examples/data/
18
+ examples/airflow/include/wheels/
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: pipeloom-databricks
3
- Version: 0.7.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.7.0
25
- Requires-Dist: pipeloom~=0.7.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
@@ -39,15 +39,25 @@ Describe the deployment in a target:
39
39
  ```yaml
40
40
  targets:
41
41
  prod:
42
- engine: {kind: spark}
43
- catalog: {kind: spark_catalog}
44
- state: {kind: table, table: ops._pipeloom_state} # shared by every task
45
- artifacts: {root: /Volumes/main/ops/pipeloom}
42
+ engine:
43
+ kind: spark
44
+ catalog:
45
+ kind: spark_catalog
46
+ state: # shared by every task
47
+ kind: table
48
+ table: ops._pipeloom_state
49
+ artifacts:
50
+ root: /Volumes/main/ops/pipeloom
46
51
  deploy:
47
52
  kind: databricks
48
- pipelines: {main: {}, daily: {select: ["tag:daily"]}}
53
+ pipelines:
54
+ main: {}
55
+ daily:
56
+ select: ["tag:daily"]
49
57
  compute:
50
- default: {kind: serverless, environment_version: "5"}
58
+ default:
59
+ kind: serverless
60
+ environment_version: "5"
51
61
  task_grouping: none # none, by_tag or by_folder
52
62
  ```
53
63
 
@@ -102,7 +112,7 @@ targets:
102
112
  run (a failed one is PLD011). If the API cannot be read, finalize prints one warning and judges
103
113
  by the attempt files alone. A one-time run has no job run id, so it gets no task states.
104
114
 
105
- - Unity Catalog: `catalog: {kind: unity, catalog: main}` (Spark engine only) addresses tables and
115
+ - Unity Catalog: a `catalog` block with `kind: unity` and `catalog: main` (Spark engine only) addresses tables and
106
116
  views as `` `catalog`.`schema`.`name` ``. The option catalog fills in when the target's naming
107
117
  leaves it empty. A schema is created only when it does not exist yet, so a principal without
108
118
  CREATE SCHEMA can write to an existing one.
@@ -12,15 +12,25 @@ Describe the deployment in a target:
12
12
  ```yaml
13
13
  targets:
14
14
  prod:
15
- engine: {kind: spark}
16
- catalog: {kind: spark_catalog}
17
- state: {kind: table, table: ops._pipeloom_state} # shared by every task
18
- artifacts: {root: /Volumes/main/ops/pipeloom}
15
+ engine:
16
+ kind: spark
17
+ catalog:
18
+ kind: spark_catalog
19
+ state: # shared by every task
20
+ kind: table
21
+ table: ops._pipeloom_state
22
+ artifacts:
23
+ root: /Volumes/main/ops/pipeloom
19
24
  deploy:
20
25
  kind: databricks
21
- pipelines: {main: {}, daily: {select: ["tag:daily"]}}
26
+ pipelines:
27
+ main: {}
28
+ daily:
29
+ select: ["tag:daily"]
22
30
  compute:
23
- default: {kind: serverless, environment_version: "5"}
31
+ default:
32
+ kind: serverless
33
+ environment_version: "5"
24
34
  task_grouping: none # none, by_tag or by_folder
25
35
  ```
26
36
 
@@ -75,7 +85,7 @@ targets:
75
85
  run (a failed one is PLD011). If the API cannot be read, finalize prints one warning and judges
76
86
  by the attempt files alone. A one-time run has no job run id, so it gets no task states.
77
87
 
78
- - Unity Catalog: `catalog: {kind: unity, catalog: main}` (Spark engine only) addresses tables and
88
+ - Unity Catalog: a `catalog` block with `kind: unity` and `catalog: main` (Spark engine only) addresses tables and
79
89
  views as `` `catalog`.`schema`.`name` ``. The option catalog fills in when the target's naming
80
90
  leaves it empty. A schema is created only when it does not exist yet, so a principal without
81
91
  CREATE SCHEMA can write to an existing one.
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "pipeloom-databricks"
7
- version = "0.7.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.7.0", "pipeloom-spark~=0.7.0", "databricks-sdk>=0.50,<1"]
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 the stable manifest. Below `python_paths` the walk skips dot entries, the
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
- for rel_file in [n.file for n in plan.nodes.values()] + [s.file for s in plan.sources.values()]:
80
- add(root / rel_file)
81
- for entry in plan.metadata.python_paths:
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
- report.add("PLD012", f"python_paths entry '{entry}' lies outside the project folder")
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(".py") and not name.startswith("."):
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
- for rel, text in files.items():
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
- for rel, text in files.items():
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": "7258536b510075fdb1649be695bf3e6ba2b43226a1e3cbf08dff4e034820e1e6",
6
- "pipeloom_settings_hash": "034545979226d2fbe052e6ebcc88b29b35a46a8544664e4b54e677f6b904d886",
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=7258536b510075fdb1649be695bf3e6ba2b43226a1e3cbf08dff4e034820e1e6",
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": 0,
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=7258536b510075fdb1649be695bf3e6ba2b43226a1e3cbf08dff4e034820e1e6",
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=7258536b510075fdb1649be695bf3e6ba2b43226a1e3cbf08dff4e034820e1e6",
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: 7258536b510075fdb1649be695bf3e6ba2b43226a1e3cbf08dff4e034820e1e6
9
- pipeloom_settings_hash: 034545979226d2fbe052e6ebcc88b29b35a46a8544664e4b54e677f6b904d886
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=7258536b510075fdb1649be695bf3e6ba2b43226a1e3cbf08dff4e034820e1e6
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: 0
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=7258536b510075fdb1649be695bf3e6ba2b43226a1e3cbf08dff4e034820e1e6
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=7258536b510075fdb1649be695bf3e6ba2b43226a1e3cbf08dff4e034820e1e6
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": "7258536b510075fdb1649be695bf3e6ba2b43226a1e3cbf08dff4e034820e1e6",
6
- "pipeloom_settings_hash": "053a5541698f44fcf8cc84c9779beb450cc97bb325b8e217071acb27779ed4c1",
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=7258536b510075fdb1649be695bf3e6ba2b43226a1e3cbf08dff4e034820e1e6",
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=7258536b510075fdb1649be695bf3e6ba2b43226a1e3cbf08dff4e034820e1e6",
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=7258536b510075fdb1649be695bf3e6ba2b43226a1e3cbf08dff4e034820e1e6",
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": 0,
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=7258536b510075fdb1649be695bf3e6ba2b43226a1e3cbf08dff4e034820e1e6",
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: 7258536b510075fdb1649be695bf3e6ba2b43226a1e3cbf08dff4e034820e1e6
9
- pipeloom_settings_hash: 053a5541698f44fcf8cc84c9779beb450cc97bb325b8e217071acb27779ed4c1
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=7258536b510075fdb1649be695bf3e6ba2b43226a1e3cbf08dff4e034820e1e6
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=7258536b510075fdb1649be695bf3e6ba2b43226a1e3cbf08dff4e034820e1e6
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=7258536b510075fdb1649be695bf3e6ba2b43226a1e3cbf08dff4e034820e1e6
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: 0
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=7258536b510075fdb1649be695bf3e6ba2b43226a1e3cbf08dff4e034820e1e6
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": "7258536b510075fdb1649be695bf3e6ba2b43226a1e3cbf08dff4e034820e1e6",
6
- "pipeloom_settings_hash": "c0c07f36da1b57afbfdc75c8c7cabafe6f891d56301cc39f1c7532d013b5f4e5",
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=7258536b510075fdb1649be695bf3e6ba2b43226a1e3cbf08dff4e034820e1e6",
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=7258536b510075fdb1649be695bf3e6ba2b43226a1e3cbf08dff4e034820e1e6",
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=7258536b510075fdb1649be695bf3e6ba2b43226a1e3cbf08dff4e034820e1e6",
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=7258536b510075fdb1649be695bf3e6ba2b43226a1e3cbf08dff4e034820e1e6",
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=7258536b510075fdb1649be695bf3e6ba2b43226a1e3cbf08dff4e034820e1e6",
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=7258536b510075fdb1649be695bf3e6ba2b43226a1e3cbf08dff4e034820e1e6",
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": "rpt_revenue"
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=7258536b510075fdb1649be695bf3e6ba2b43226a1e3cbf08dff4e034820e1e6",
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}}",