sqlmesh 0.209.1.dev38__py3-none-any.whl → 0.209.1.dev40__py3-none-any.whl
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.
- sqlmesh/_version.py +2 -2
- sqlmesh/dbt/loader.py +11 -3
- sqlmesh/dbt/model.py +4 -3
- {sqlmesh-0.209.1.dev38.dist-info → sqlmesh-0.209.1.dev40.dist-info}/METADATA +1 -1
- {sqlmesh-0.209.1.dev38.dist-info → sqlmesh-0.209.1.dev40.dist-info}/RECORD +9 -9
- {sqlmesh-0.209.1.dev38.dist-info → sqlmesh-0.209.1.dev40.dist-info}/WHEEL +0 -0
- {sqlmesh-0.209.1.dev38.dist-info → sqlmesh-0.209.1.dev40.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.209.1.dev38.dist-info → sqlmesh-0.209.1.dev40.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.209.1.dev38.dist-info → sqlmesh-0.209.1.dev40.dist-info}/top_level.txt +0 -0
sqlmesh/_version.py
CHANGED
|
@@ -17,5 +17,5 @@ __version__: str
|
|
|
17
17
|
__version_tuple__: VERSION_TUPLE
|
|
18
18
|
version_tuple: VERSION_TUPLE
|
|
19
19
|
|
|
20
|
-
__version__ = version = '0.209.1.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 209, 1, '
|
|
20
|
+
__version__ = version = '0.209.1.dev40'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 209, 1, 'dev40')
|
sqlmesh/dbt/loader.py
CHANGED
|
@@ -293,17 +293,25 @@ class DbtLoader(Loader):
|
|
|
293
293
|
)
|
|
294
294
|
]
|
|
295
295
|
|
|
296
|
-
def _compute_yaml_max_mtime_per_subfolder(
|
|
297
|
-
|
|
296
|
+
def _compute_yaml_max_mtime_per_subfolder(
|
|
297
|
+
self, root: Path, visited: t.Optional[t.Set[Path]] = None
|
|
298
|
+
) -> t.Dict[Path, float]:
|
|
299
|
+
root = root.resolve()
|
|
300
|
+
visited = visited or set()
|
|
301
|
+
if not root.is_dir() or root in visited:
|
|
298
302
|
return {}
|
|
299
303
|
|
|
304
|
+
visited.add(root)
|
|
305
|
+
|
|
300
306
|
result = {}
|
|
301
307
|
max_mtime: t.Optional[float] = None
|
|
302
308
|
|
|
303
309
|
for nested in root.iterdir():
|
|
304
310
|
try:
|
|
305
311
|
if nested.is_dir():
|
|
306
|
-
result.update(
|
|
312
|
+
result.update(
|
|
313
|
+
self._compute_yaml_max_mtime_per_subfolder(nested, visited=visited)
|
|
314
|
+
)
|
|
307
315
|
elif nested.suffix.lower() in (".yaml", ".yml"):
|
|
308
316
|
yaml_mtime = self._path_mtimes.get(nested)
|
|
309
317
|
if yaml_mtime:
|
sqlmesh/dbt/model.py
CHANGED
|
@@ -293,10 +293,11 @@ class ModelConfig(BaseModelConfig):
|
|
|
293
293
|
self.incremental_strategy
|
|
294
294
|
and strategy not in INCREMENTAL_BY_UNIQUE_KEY_STRATEGIES
|
|
295
295
|
):
|
|
296
|
-
|
|
297
|
-
f"
|
|
298
|
-
f"
|
|
296
|
+
get_console().log_warning(
|
|
297
|
+
f"Unique key is not compatible with '{strategy}' incremental strategy in model '{self.canonical_name(context)}'. "
|
|
298
|
+
f"Supported strategies include {collection_to_str(INCREMENTAL_BY_UNIQUE_KEY_STRATEGIES)}. Falling back to 'merge' strategy."
|
|
299
299
|
)
|
|
300
|
+
strategy = "merge"
|
|
300
301
|
|
|
301
302
|
if self.incremental_predicates:
|
|
302
303
|
dialect = self.dialect(context)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
sqlmesh/__init__.py,sha256=QjwaamJIdW7voXoS880yAx7tHm-Im4_mqGA-XJgafos,7631
|
|
2
|
-
sqlmesh/_version.py,sha256=
|
|
2
|
+
sqlmesh/_version.py,sha256=dW0Bx5iPEJT2A9PjVGMZJLiH8-1TLBll0D0qOqgPElg,530
|
|
3
3
|
sqlmesh/magics.py,sha256=xLh3u4eqpVrKRVN5KF3X84RPRqjygAB9AJP1TXwH8hg,42086
|
|
4
4
|
sqlmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
sqlmesh/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -131,9 +131,9 @@ sqlmesh/dbt/builtin.py,sha256=p4E1rmSLM0B5PHcFWA9J7FwScR90pIPqiMN8G4M3sBM,15173
|
|
|
131
131
|
sqlmesh/dbt/column.py,sha256=Kvj_N3D_QegcoNQG7VqRiqy-FRfupud-6ilhlykBOgE,1873
|
|
132
132
|
sqlmesh/dbt/common.py,sha256=cU5u3_dYXyN2U--YEb1ev7WLfKTJMt_oGQRvsHFu1HE,7867
|
|
133
133
|
sqlmesh/dbt/context.py,sha256=dxClM-G1IeMbP0v5yxC_va8QNU-uKghW2dBlSZHJOk0,10331
|
|
134
|
-
sqlmesh/dbt/loader.py,sha256=
|
|
134
|
+
sqlmesh/dbt/loader.py,sha256=GyGYhuDUU1fwh8cevXbN_8gjT_hL1imZw7wxoN9QToQ,15931
|
|
135
135
|
sqlmesh/dbt/manifest.py,sha256=olX7nLmT0S6DB18cNSbo8Sr1L4n0LYgq6NLclNt5A9E,25148
|
|
136
|
-
sqlmesh/dbt/model.py,sha256=
|
|
136
|
+
sqlmesh/dbt/model.py,sha256=vrcwKpPX1aN0M8PpKCLL0yz3fvtbCxRB4fsIwIjbqBI,26121
|
|
137
137
|
sqlmesh/dbt/package.py,sha256=IBBQueVB4_4C9tIk0-GUL-O2uibNxXu6W2a4AeHHcOU,4322
|
|
138
138
|
sqlmesh/dbt/profile.py,sha256=Fz2c0dJNN0xBgYEogCIKBTByjNvlA2BVBzOLQCfdEfM,3788
|
|
139
139
|
sqlmesh/dbt/project.py,sha256=bXW2VL0023mhOr0GRAcYsomIcR3qTpflWgZO3oMwtOE,4102
|
|
@@ -292,7 +292,7 @@ sqlmesh/utils/pydantic.py,sha256=o_NsXbIpDqNpUA1Uc5xF0ZzoXQYYB0DfHwdRxBwXPNk,120
|
|
|
292
292
|
sqlmesh/utils/rich.py,sha256=cwQ5nJ6sgz64xHtoh6_ec7ReV5YpsOGhMtUJnwoRfEI,3549
|
|
293
293
|
sqlmesh/utils/windows.py,sha256=r7Yin4WEwbvH7sKA3hOJtRsclmscNuBeCklCfVPvtQs,611
|
|
294
294
|
sqlmesh/utils/yaml.py,sha256=hvo5lmybYLcIx4p6CQwufS8X4MbwS60lEBnCmYJCXmU,2336
|
|
295
|
-
sqlmesh-0.209.1.
|
|
295
|
+
sqlmesh-0.209.1.dev40.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
|
|
296
296
|
sqlmesh_dbt/__init__.py,sha256=awYS5y5mz-1NUmx6i5h5NSTJ7tidRl9NC0FAnFWSF6U,350
|
|
297
297
|
sqlmesh_dbt/cli.py,sha256=Ekn77WLMmyyr31aoDoWrZp5DS0rfiddy7pNohBK8G0s,2115
|
|
298
298
|
sqlmesh_dbt/console.py,sha256=1B0B5_R1DlrEkyWVDl8G78-B6_K-ZtLPsQEhqPCfLEU,188
|
|
@@ -414,8 +414,8 @@ web/server/api/endpoints/models.py,sha256=kwj0s7uve3iZSMfmjkoPVMFMeY1sD0peTeyrWf
|
|
|
414
414
|
web/server/api/endpoints/modules.py,sha256=8hqqgonGay_mJmpCw0IdbjsPhWlQH2VLdKAqha-myac,468
|
|
415
415
|
web/server/api/endpoints/plan.py,sha256=bbbY50W_2MsZSTxOHWMKz0tbIm75nsRSlPy8GI2fg9Q,9306
|
|
416
416
|
web/server/api/endpoints/table_diff.py,sha256=SCy3-pr5x6bEEiOaZGCDbiHQhpgxwmnz3Acqa2Ie6jI,2090
|
|
417
|
-
sqlmesh-0.209.1.
|
|
418
|
-
sqlmesh-0.209.1.
|
|
419
|
-
sqlmesh-0.209.1.
|
|
420
|
-
sqlmesh-0.209.1.
|
|
421
|
-
sqlmesh-0.209.1.
|
|
417
|
+
sqlmesh-0.209.1.dev40.dist-info/METADATA,sha256=bX7qEcRVm3hDw2OCWo7CBvsYEBVbFpL91cp1EBQjdYA,26686
|
|
418
|
+
sqlmesh-0.209.1.dev40.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
419
|
+
sqlmesh-0.209.1.dev40.dist-info/entry_points.txt,sha256=sHAf6tQczIM8xZoduN4qaUjV7QEPVUUW_LCT8EDUMv4,155
|
|
420
|
+
sqlmesh-0.209.1.dev40.dist-info/top_level.txt,sha256=RQ-33FPe2IgL0rgossAfJkCRtqslz9b7wFARqiWLC5Q,24
|
|
421
|
+
sqlmesh-0.209.1.dev40.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|