sqlmesh 0.181.0__py3-none-any.whl → 0.181.1.dev2__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/core/context.py +3 -3
- sqlmesh/core/model/common.py +10 -4
- {sqlmesh-0.181.0.dist-info → sqlmesh-0.181.1.dev2.dist-info}/METADATA +1 -1
- {sqlmesh-0.181.0.dist-info → sqlmesh-0.181.1.dev2.dist-info}/RECORD +9 -9
- {sqlmesh-0.181.0.dist-info → sqlmesh-0.181.1.dev2.dist-info}/WHEEL +0 -0
- {sqlmesh-0.181.0.dist-info → sqlmesh-0.181.1.dev2.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.181.0.dist-info → sqlmesh-0.181.1.dev2.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.181.0.dist-info → sqlmesh-0.181.1.dev2.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.181.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 181,
|
|
20
|
+
__version__ = version = '0.181.1.dev2'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 181, 1, 'dev2')
|
sqlmesh/core/context.py
CHANGED
|
@@ -1677,9 +1677,9 @@ class GenericContext(BaseContext, t.Generic[C]):
|
|
|
1677
1677
|
target_snapshot = target_snapshots_to_name.get(model.fqn)
|
|
1678
1678
|
|
|
1679
1679
|
if target_snapshot and source_snapshot:
|
|
1680
|
-
if (
|
|
1681
|
-
source_snapshot.
|
|
1682
|
-
|
|
1680
|
+
if (source_snapshot.fingerprint != target_snapshot.fingerprint) and (
|
|
1681
|
+
(source_snapshot.version != target_snapshot.version)
|
|
1682
|
+
or (source_snapshot.is_forward_only or target_snapshot.is_forward_only)
|
|
1683
1683
|
):
|
|
1684
1684
|
# Compare the virtual layer instead of the physical layer because the virtual layer is guaranteed to point
|
|
1685
1685
|
# to the correct/active snapshot for the model in the specified environment, taking into account things like dev previews
|
sqlmesh/core/model/common.py
CHANGED
|
@@ -361,10 +361,16 @@ def sort_python_env(python_env: t.Dict[str, Executable]) -> t.List[t.Tuple[str,
|
|
|
361
361
|
|
|
362
362
|
def sorted_python_env_payloads(python_env: t.Dict[str, Executable]) -> t.List[str]:
|
|
363
363
|
"""Returns the payloads of the sorted python env."""
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
364
|
+
|
|
365
|
+
def _executable_to_str(k: str, v: Executable) -> str:
|
|
366
|
+
result = f"# {v.path}\n" if v.path is not None else ""
|
|
367
|
+
if v.is_import or v.is_definition:
|
|
368
|
+
result += v.payload
|
|
369
|
+
else:
|
|
370
|
+
result += f"{k} = {v.payload}"
|
|
371
|
+
return result
|
|
372
|
+
|
|
373
|
+
return [_executable_to_str(k, v) for k, v in sort_python_env(python_env)]
|
|
368
374
|
|
|
369
375
|
|
|
370
376
|
expression_validator: t.Callable = field_validator(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
sqlmesh/__init__.py,sha256=uPXld_xTZ2NTruSfVJ_vR_w-uAxR3T-gMXAb-EphTe8,7167
|
|
2
|
-
sqlmesh/_version.py,sha256=
|
|
2
|
+
sqlmesh/_version.py,sha256=CuXexU7YUj3BaQIkGUDfnLYhBS7j71XtwIazBc2rtmw,528
|
|
3
3
|
sqlmesh/magics.py,sha256=7BU9ec9zE4tjvZ3hdEqwFX2VVV-CI0h06TGZo_Ssi8M,39070
|
|
4
4
|
sqlmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
sqlmesh/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -13,7 +13,7 @@ sqlmesh/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
13
13
|
sqlmesh/core/_typing.py,sha256=e1f7xO2aZCy38M_3VoDy-XI3shyd99-IFctgIFSgXWM,497
|
|
14
14
|
sqlmesh/core/console.py,sha256=ERAYluCseNnRxWXpgtNE0MYut5CCWGoyHdPKMnYv0Fc,146135
|
|
15
15
|
sqlmesh/core/constants.py,sha256=oqt6zjepUhQoWlgapKn_HpG7Pu9mrFwepdX5caNfJUI,2499
|
|
16
|
-
sqlmesh/core/context.py,sha256=
|
|
16
|
+
sqlmesh/core/context.py,sha256=CPrmMHceymyDjjgKfkszwWxAkjTUqO90TbGfozkZJWw,113720
|
|
17
17
|
sqlmesh/core/context_diff.py,sha256=s9toP17d4tJfOpFH91LcjGK2CM64PVuB0MPkeFgF4hQ,20415
|
|
18
18
|
sqlmesh/core/dialect.py,sha256=fPTV517IOS0nWMxYznNNQnXkQkFFrPOSKe8ghsQ0o8A,49759
|
|
19
19
|
sqlmesh/core/environment.py,sha256=0TTQf4C4LXwf37fm-dfYv1qyG7vtZfQI5rizgm5g0j0,11442
|
|
@@ -85,7 +85,7 @@ sqlmesh/core/metric/definition.py,sha256=Yd5aVgsZCDPJ43aGP7WqtzZOuuSUtB8uJGVA6Jw
|
|
|
85
85
|
sqlmesh/core/metric/rewriter.py,sha256=GiSTHfn2kinqCfNPYgZPRk93JFLzVaaejHtHDQ0yXZI,7326
|
|
86
86
|
sqlmesh/core/model/__init__.py,sha256=C8GRZ53xuXEA9hQv3BQS9pNNyd9rZ06R_B96UYGhDu4,1644
|
|
87
87
|
sqlmesh/core/model/cache.py,sha256=hzpGPXxp2LFMEp6gm-8DULJKCBDGf-1kTQcfNt0xrRM,7028
|
|
88
|
-
sqlmesh/core/model/common.py,sha256
|
|
88
|
+
sqlmesh/core/model/common.py,sha256=-ObfpO9JnTAnDI1FDwOS-vkbpqBhDL8OQ2-E3KcRjXY,14724
|
|
89
89
|
sqlmesh/core/model/decorator.py,sha256=v_sVudNROGrtj5cZ3vgcOFnwPdzwoUGY6REAkQpIMQc,8927
|
|
90
90
|
sqlmesh/core/model/definition.py,sha256=68ureIjncctSdaBboY2UgfPnx6jHEefH7o-55lRuL2Y,108820
|
|
91
91
|
sqlmesh/core/model/kind.py,sha256=em6wq0W4pDnxl9sBgNweosnZH1on3h349t0Pn76wwBM,35867
|
|
@@ -265,7 +265,7 @@ sqlmesh/utils/pandas.py,sha256=j_tYhuPcWpzuPceZZ6IhdTVbmxYyGJW7l4FHr4bQqjM,1824
|
|
|
265
265
|
sqlmesh/utils/pydantic.py,sha256=ioaAzYF42PutEJRyAS11-AHguiCG3yWI6VRcTVa2G-g,10470
|
|
266
266
|
sqlmesh/utils/rich.py,sha256=xNZyPCqEc4TAlJlsEthg-5eYUWpaizz0QjBzO7a1Yv4,1509
|
|
267
267
|
sqlmesh/utils/yaml.py,sha256=np-WVcwmwsKghCgAj1OBBMsK1SXSRn4wR-H37cGiFr8,2282
|
|
268
|
-
sqlmesh-0.181.
|
|
268
|
+
sqlmesh-0.181.1.dev2.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
|
|
269
269
|
web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
270
270
|
web/client/dist/index.html,sha256=cQRIlDgkl6OgeWuHI9hM8bJhKUE9-Ji2NpQa2hlgNM8,5472
|
|
271
271
|
web/client/dist/assets/Audits-4U9LnWyN.js,sha256=reXu-sKJ76kiaAZIGkCPvgO68Km9tj1PN_9mx6X6WAY,997
|
|
@@ -382,8 +382,8 @@ web/server/api/endpoints/models.py,sha256=SzS5bshzdXyM6hb948sZ_3k-xhpGCHkxkb7pHz
|
|
|
382
382
|
web/server/api/endpoints/modules.py,sha256=8hqqgonGay_mJmpCw0IdbjsPhWlQH2VLdKAqha-myac,468
|
|
383
383
|
web/server/api/endpoints/plan.py,sha256=OYuQ_4dgbhG9ibTcX1a8mvYgH3ANxw9Fhbb4wg6QWqc,9222
|
|
384
384
|
web/server/api/endpoints/table_diff.py,sha256=Wd5YxeKbZB7AkrDvqFgvV9ZQlnKYOF1n5W_w2EHE_Zw,2085
|
|
385
|
-
sqlmesh-0.181.
|
|
386
|
-
sqlmesh-0.181.
|
|
387
|
-
sqlmesh-0.181.
|
|
388
|
-
sqlmesh-0.181.
|
|
389
|
-
sqlmesh-0.181.
|
|
385
|
+
sqlmesh-0.181.1.dev2.dist-info/METADATA,sha256=HcHQUyKlJOMJeTDuPUly3kRPi6hj71donkUcTb-d1rY,25307
|
|
386
|
+
sqlmesh-0.181.1.dev2.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
|
387
|
+
sqlmesh-0.181.1.dev2.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
388
|
+
sqlmesh-0.181.1.dev2.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
389
|
+
sqlmesh-0.181.1.dev2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|