sqlmesh 0.187.6.dev15__py3-none-any.whl → 0.187.6.dev16__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/manifest.py +18 -2
- {sqlmesh-0.187.6.dev15.dist-info → sqlmesh-0.187.6.dev16.dist-info}/METADATA +1 -1
- {sqlmesh-0.187.6.dev15.dist-info → sqlmesh-0.187.6.dev16.dist-info}/RECORD +8 -8
- {sqlmesh-0.187.6.dev15.dist-info → sqlmesh-0.187.6.dev16.dist-info}/WHEEL +0 -0
- {sqlmesh-0.187.6.dev15.dist-info → sqlmesh-0.187.6.dev16.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.187.6.dev15.dist-info → sqlmesh-0.187.6.dev16.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.187.6.dev15.dist-info → sqlmesh-0.187.6.dev16.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.187.6.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 187, 6, '
|
|
20
|
+
__version__ = version = '0.187.6.dev16'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 187, 6, 'dev16')
|
sqlmesh/dbt/manifest.py
CHANGED
|
@@ -21,6 +21,7 @@ from dbt.config import Profile, Project, RuntimeConfig
|
|
|
21
21
|
from dbt.config.profile import read_profile
|
|
22
22
|
from dbt.config.renderer import DbtProjectYamlRenderer, ProfileRenderer
|
|
23
23
|
from dbt.parser.manifest import ManifestLoader
|
|
24
|
+
from dbt.parser.sources import merge_freshness
|
|
24
25
|
from dbt.tracking import do_not_track
|
|
25
26
|
|
|
26
27
|
from sqlmesh.core import constants as c
|
|
@@ -152,9 +153,24 @@ class ManifestHelper:
|
|
|
152
153
|
|
|
153
154
|
def _load_sources(self) -> None:
|
|
154
155
|
for source in self._manifest.sources.values():
|
|
156
|
+
# starting in dbt-core 1.9.5, freshness can be set in both source and source config
|
|
157
|
+
source_dict = source.to_dict()
|
|
158
|
+
source_dict.pop("freshness", None)
|
|
159
|
+
|
|
160
|
+
source_config_dict = _config(source)
|
|
161
|
+
source_config_dict.pop("freshness", None)
|
|
162
|
+
|
|
163
|
+
source_config_freshness = getattr(source.config, "freshness", None)
|
|
164
|
+
freshness = (
|
|
165
|
+
merge_freshness(source.freshness, source_config_freshness)
|
|
166
|
+
if source_config_freshness
|
|
167
|
+
else source.freshness
|
|
168
|
+
)
|
|
169
|
+
|
|
155
170
|
source_config = SourceConfig(
|
|
156
|
-
**
|
|
157
|
-
**
|
|
171
|
+
**source_config_dict,
|
|
172
|
+
**source_dict,
|
|
173
|
+
freshness=freshness.to_dict() if freshness else None,
|
|
158
174
|
)
|
|
159
175
|
self._sources_per_package[source.package_name][source_config.config_name] = (
|
|
160
176
|
source_config
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
sqlmesh/__init__.py,sha256=69xw6bTmi4cW90M-sl3g6wLDgxVcLHcKg1q8GS3lqyA,7466
|
|
2
|
-
sqlmesh/_version.py,sha256=
|
|
2
|
+
sqlmesh/_version.py,sha256=fhM-Vqc5KEw9t4NTkJaVCeh1jeXmzbDt3VQAIFyKAjE,530
|
|
3
3
|
sqlmesh/magics.py,sha256=JHorAZNtezf123jmTyNSoUC9yHmv-08hMP205PJmmIo,39750
|
|
4
4
|
sqlmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
sqlmesh/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -128,7 +128,7 @@ sqlmesh/dbt/column.py,sha256=Kvj_N3D_QegcoNQG7VqRiqy-FRfupud-6ilhlykBOgE,1873
|
|
|
128
128
|
sqlmesh/dbt/common.py,sha256=g4PAL-sEdlnfb_zT-WW3xh-oamyCUoK8dUiDEMVwDWI,7804
|
|
129
129
|
sqlmesh/dbt/context.py,sha256=dxClM-G1IeMbP0v5yxC_va8QNU-uKghW2dBlSZHJOk0,10331
|
|
130
130
|
sqlmesh/dbt/loader.py,sha256=oDFj9OcWJxd72eN9u9gHM_bWj7T5EQuGnLViSdtLbMU,15472
|
|
131
|
-
sqlmesh/dbt/manifest.py,sha256=
|
|
131
|
+
sqlmesh/dbt/manifest.py,sha256=a6gs4fpTBIb3p4r2dVp_4TKQqjpUEorfb9XWgmmfK3A,24126
|
|
132
132
|
sqlmesh/dbt/model.py,sha256=-TqeldZAqW-4g84Xi_16DpUD3atImk_9OHMbATIKYb8,26328
|
|
133
133
|
sqlmesh/dbt/package.py,sha256=IBBQueVB4_4C9tIk0-GUL-O2uibNxXu6W2a4AeHHcOU,4322
|
|
134
134
|
sqlmesh/dbt/profile.py,sha256=Fz2c0dJNN0xBgYEogCIKBTByjNvlA2BVBzOLQCfdEfM,3788
|
|
@@ -270,7 +270,7 @@ sqlmesh/utils/pydantic.py,sha256=I898jAFqa3qU6lG2uPpRebVFncOUo8ZrLWM_R3K3DHU,116
|
|
|
270
270
|
sqlmesh/utils/rich.py,sha256=xNZyPCqEc4TAlJlsEthg-5eYUWpaizz0QjBzO7a1Yv4,1509
|
|
271
271
|
sqlmesh/utils/windows.py,sha256=r7Yin4WEwbvH7sKA3hOJtRsclmscNuBeCklCfVPvtQs,611
|
|
272
272
|
sqlmesh/utils/yaml.py,sha256=np-WVcwmwsKghCgAj1OBBMsK1SXSRn4wR-H37cGiFr8,2282
|
|
273
|
-
sqlmesh-0.187.6.
|
|
273
|
+
sqlmesh-0.187.6.dev16.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
|
|
274
274
|
web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
275
275
|
web/client/dist/index.html,sha256=8vySM6CmjEU7pX2XGNeYyHR4PwjYGMsYT_RJn3p8Qt8,5472
|
|
276
276
|
web/client/dist/assets/Audits-C6gUfP0Y.js,sha256=fgwKzn8EkoySQW3vumBtag39Tf7tKZ1CAjrtgiV6nVg,1041
|
|
@@ -388,8 +388,8 @@ web/server/api/endpoints/models.py,sha256=ud-lRwriyI_OYg9tZchrBgeiXELiRTLNEodraf
|
|
|
388
388
|
web/server/api/endpoints/modules.py,sha256=8hqqgonGay_mJmpCw0IdbjsPhWlQH2VLdKAqha-myac,468
|
|
389
389
|
web/server/api/endpoints/plan.py,sha256=OYuQ_4dgbhG9ibTcX1a8mvYgH3ANxw9Fhbb4wg6QWqc,9222
|
|
390
390
|
web/server/api/endpoints/table_diff.py,sha256=Wd5YxeKbZB7AkrDvqFgvV9ZQlnKYOF1n5W_w2EHE_Zw,2085
|
|
391
|
-
sqlmesh-0.187.6.
|
|
392
|
-
sqlmesh-0.187.6.
|
|
393
|
-
sqlmesh-0.187.6.
|
|
394
|
-
sqlmesh-0.187.6.
|
|
395
|
-
sqlmesh-0.187.6.
|
|
391
|
+
sqlmesh-0.187.6.dev16.dist-info/METADATA,sha256=5vJEoR5iPT5paG4aYDJfadyxG8npQE1jG9pjiV1xoGU,26494
|
|
392
|
+
sqlmesh-0.187.6.dev16.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
393
|
+
sqlmesh-0.187.6.dev16.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
394
|
+
sqlmesh-0.187.6.dev16.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
395
|
+
sqlmesh-0.187.6.dev16.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|