sqlmesh 0.182.1.dev5__py3-none-any.whl → 0.182.1.dev6__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/state_sync/base.py +2 -4
- sqlmesh/core/state_sync/cache.py +1 -4
- sqlmesh/core/state_sync/db/facade.py +1 -1
- sqlmesh/core/state_sync/db/snapshot.py +1 -4
- {sqlmesh-0.182.1.dev5.dist-info → sqlmesh-0.182.1.dev6.dist-info}/METADATA +1 -1
- {sqlmesh-0.182.1.dev5.dist-info → sqlmesh-0.182.1.dev6.dist-info}/RECORD +11 -11
- {sqlmesh-0.182.1.dev5.dist-info → sqlmesh-0.182.1.dev6.dist-info}/WHEEL +0 -0
- {sqlmesh-0.182.1.dev5.dist-info → sqlmesh-0.182.1.dev6.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.182.1.dev5.dist-info → sqlmesh-0.182.1.dev6.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.182.1.dev5.dist-info → sqlmesh-0.182.1.dev6.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.182.1.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 182, 1, '
|
|
20
|
+
__version__ = version = '0.182.1.dev6'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 182, 1, 'dev6')
|
sqlmesh/core/state_sync/base.py
CHANGED
|
@@ -86,14 +86,12 @@ class StateReader(abc.ABC):
|
|
|
86
86
|
|
|
87
87
|
@abc.abstractmethod
|
|
88
88
|
def get_snapshots(
|
|
89
|
-
self,
|
|
90
|
-
snapshot_ids: t.Optional[t.Iterable[SnapshotIdLike]],
|
|
89
|
+
self, snapshot_ids: t.Iterable[SnapshotIdLike]
|
|
91
90
|
) -> t.Dict[SnapshotId, Snapshot]:
|
|
92
91
|
"""Bulk fetch snapshots given the corresponding snapshot ids.
|
|
93
92
|
|
|
94
93
|
Args:
|
|
95
|
-
snapshot_ids: Iterable of snapshot ids to get.
|
|
96
|
-
available snapshots will be returned.
|
|
94
|
+
snapshot_ids: Iterable of snapshot ids to get.
|
|
97
95
|
|
|
98
96
|
Returns:
|
|
99
97
|
A dictionary of snapshot ids to snapshots for ones that could be found.
|
sqlmesh/core/state_sync/cache.py
CHANGED
|
@@ -46,11 +46,8 @@ class CachingStateSync(DelegatingStateSync):
|
|
|
46
46
|
return snapshot
|
|
47
47
|
|
|
48
48
|
def get_snapshots(
|
|
49
|
-
self, snapshot_ids: t.
|
|
49
|
+
self, snapshot_ids: t.Iterable[SnapshotIdLike]
|
|
50
50
|
) -> t.Dict[SnapshotId, Snapshot]:
|
|
51
|
-
if snapshot_ids is None:
|
|
52
|
-
return self.state_sync.get_snapshots(snapshot_ids)
|
|
53
|
-
|
|
54
51
|
existing = {}
|
|
55
52
|
missing = set()
|
|
56
53
|
now = now_timestamp()
|
|
@@ -365,7 +365,7 @@ class EngineAdapterStateSync(StateSync):
|
|
|
365
365
|
|
|
366
366
|
def get_snapshots(
|
|
367
367
|
self,
|
|
368
|
-
snapshot_ids: t.
|
|
368
|
+
snapshot_ids: t.Iterable[SnapshotIdLike],
|
|
369
369
|
) -> t.Dict[SnapshotId, Snapshot]:
|
|
370
370
|
"""Fetches snapshots from the state.
|
|
371
371
|
|
|
@@ -35,7 +35,6 @@ from sqlmesh.core.snapshot import (
|
|
|
35
35
|
)
|
|
36
36
|
from sqlmesh.utils.migration import index_text_type, blob_text_type
|
|
37
37
|
from sqlmesh.utils.date import now_timestamp, TimeLike, now, to_timestamp
|
|
38
|
-
from sqlmesh.utils.errors import SQLMeshError
|
|
39
38
|
from sqlmesh.utils.pydantic import PydanticModel
|
|
40
39
|
from sqlmesh.utils import unique
|
|
41
40
|
|
|
@@ -309,7 +308,7 @@ class SnapshotState:
|
|
|
309
308
|
|
|
310
309
|
def get_snapshots(
|
|
311
310
|
self,
|
|
312
|
-
snapshot_ids: t.
|
|
311
|
+
snapshot_ids: t.Iterable[SnapshotIdLike],
|
|
313
312
|
) -> t.Dict[SnapshotId, Snapshot]:
|
|
314
313
|
"""Fetches snapshots.
|
|
315
314
|
|
|
@@ -319,8 +318,6 @@ class SnapshotState:
|
|
|
319
318
|
Returns:
|
|
320
319
|
A dictionary of snapshot IDs to snapshots.
|
|
321
320
|
"""
|
|
322
|
-
if snapshot_ids is None:
|
|
323
|
-
raise SQLMeshError("Must provide snapshot IDs to fetch snapshots.")
|
|
324
321
|
return self._get_snapshots(snapshot_ids)
|
|
325
322
|
|
|
326
323
|
def snapshots_exist(self, snapshot_ids: t.Iterable[SnapshotIdLike]) -> t.Set[SnapshotId]:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
sqlmesh/__init__.py,sha256=DRovDXI-9D9xeYDP7t8Fq7mI31S2btlN-LHPOK3y7PA,7240
|
|
2
|
-
sqlmesh/_version.py,sha256=
|
|
2
|
+
sqlmesh/_version.py,sha256=WRjruR8zY9iuNXZBao7ZowABnXMEYfXOx93huP77IKA,528
|
|
3
3
|
sqlmesh/magics.py,sha256=9oY1Uz8uwsuTtPRg9HTYDxnGiJ7-OVRCpmCgAhbKHUU,39431
|
|
4
4
|
sqlmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
sqlmesh/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -102,16 +102,16 @@ sqlmesh/core/snapshot/categorizer.py,sha256=qGG5870mu1jR2whKisSBH_GFbsyh96RnzJDg
|
|
|
102
102
|
sqlmesh/core/snapshot/definition.py,sha256=PKzBLiQ1yIycGbmslEoQyJEwtfnJHsQuY_sl1xkBcvk,84081
|
|
103
103
|
sqlmesh/core/snapshot/evaluator.py,sha256=NZVgQoaSH-D7Q7PAHTRzQ5O2pdra3MUToLi9p8qAyVg,89265
|
|
104
104
|
sqlmesh/core/state_sync/__init__.py,sha256=B60xj-_Xk-4jas3UphLvwkuf04G-9AyGckcblXE0aRg,869
|
|
105
|
-
sqlmesh/core/state_sync/base.py,sha256=
|
|
106
|
-
sqlmesh/core/state_sync/cache.py,sha256=
|
|
105
|
+
sqlmesh/core/state_sync/base.py,sha256=GaSyUg2TgDZFZrlLP5QF0Wjwl47KuIj1D3NSZSjL12c,18346
|
|
106
|
+
sqlmesh/core/state_sync/cache.py,sha256=0AsYdQyBqbLdJvkBQ-hDAipsvnn_jSps-nya-Q4XeL0,5337
|
|
107
107
|
sqlmesh/core/state_sync/common.py,sha256=THK-6AGHFBAuLXydD8QhzmzCdyl0BMrz2rB2xpmC99Y,6532
|
|
108
108
|
sqlmesh/core/state_sync/export_import.py,sha256=WJ7sFX2b_RPAFE4yspJRi_4JQnaO23xpJgRxwXD0agA,8709
|
|
109
109
|
sqlmesh/core/state_sync/db/__init__.py,sha256=jGCqKYB7npq4eh6H2LyfBAJWdOP-IFu0DC4CMiQgYvw,107
|
|
110
110
|
sqlmesh/core/state_sync/db/environment.py,sha256=pwc2eRxZnIiTM8ZTHSfiOslO4FqFz9ch91J3VK6U1b8,13514
|
|
111
|
-
sqlmesh/core/state_sync/db/facade.py,sha256=
|
|
111
|
+
sqlmesh/core/state_sync/db/facade.py,sha256=gOtAIQ8l3eh9ftkslJiNJHZnA8LjQARyFI59UpFZhoA,25411
|
|
112
112
|
sqlmesh/core/state_sync/db/interval.py,sha256=QgdqoVyLYw15SnX8O6icHUF3ZHnI6a9rX0505-FgFNg,17964
|
|
113
113
|
sqlmesh/core/state_sync/db/migrator.py,sha256=2LNUwOBNFkA1ntp-Z93S_OWxFQhOBj3ZD_ZqPCyPEAE,18139
|
|
114
|
-
sqlmesh/core/state_sync/db/snapshot.py,sha256=
|
|
114
|
+
sqlmesh/core/state_sync/db/snapshot.py,sha256=vU96XSRtTwCM21jch-KubGK3HfdOK78aZ9sqROQxL6s,29425
|
|
115
115
|
sqlmesh/core/state_sync/db/utils.py,sha256=204OpT3ISFPCwWP9Aqq8nr6ETl24sbG5uOyo86IJv6E,3819
|
|
116
116
|
sqlmesh/core/state_sync/db/version.py,sha256=CZN2o1jxfsPxTGouncQIT51q61ObZKCuQdvWUWyTrI0,2201
|
|
117
117
|
sqlmesh/core/test/__init__.py,sha256=e83TJPwPRR_rAG29Y0OVbZb-5oWVBzz-_wrcd22Qk10,418
|
|
@@ -266,7 +266,7 @@ sqlmesh/utils/pandas.py,sha256=j_tYhuPcWpzuPceZZ6IhdTVbmxYyGJW7l4FHr4bQqjM,1824
|
|
|
266
266
|
sqlmesh/utils/pydantic.py,sha256=ioaAzYF42PutEJRyAS11-AHguiCG3yWI6VRcTVa2G-g,10470
|
|
267
267
|
sqlmesh/utils/rich.py,sha256=xNZyPCqEc4TAlJlsEthg-5eYUWpaizz0QjBzO7a1Yv4,1509
|
|
268
268
|
sqlmesh/utils/yaml.py,sha256=np-WVcwmwsKghCgAj1OBBMsK1SXSRn4wR-H37cGiFr8,2282
|
|
269
|
-
sqlmesh-0.182.1.
|
|
269
|
+
sqlmesh-0.182.1.dev6.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
|
|
270
270
|
web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
271
271
|
web/client/dist/index.html,sha256=nPqIDCJmonOaEAp4hhwrwgPdwt_F-5zzw-WW1kJqq3I,5472
|
|
272
272
|
web/client/dist/assets/Audits-DiRd7NXk.js,sha256=Q5dIFqsHps-vVYD8037NpTPW_1juQgn_Ov45smEm7Y8,1041
|
|
@@ -384,8 +384,8 @@ web/server/api/endpoints/models.py,sha256=SzS5bshzdXyM6hb948sZ_3k-xhpGCHkxkb7pHz
|
|
|
384
384
|
web/server/api/endpoints/modules.py,sha256=8hqqgonGay_mJmpCw0IdbjsPhWlQH2VLdKAqha-myac,468
|
|
385
385
|
web/server/api/endpoints/plan.py,sha256=OYuQ_4dgbhG9ibTcX1a8mvYgH3ANxw9Fhbb4wg6QWqc,9222
|
|
386
386
|
web/server/api/endpoints/table_diff.py,sha256=Wd5YxeKbZB7AkrDvqFgvV9ZQlnKYOF1n5W_w2EHE_Zw,2085
|
|
387
|
-
sqlmesh-0.182.1.
|
|
388
|
-
sqlmesh-0.182.1.
|
|
389
|
-
sqlmesh-0.182.1.
|
|
390
|
-
sqlmesh-0.182.1.
|
|
391
|
-
sqlmesh-0.182.1.
|
|
387
|
+
sqlmesh-0.182.1.dev6.dist-info/METADATA,sha256=3dYKuq9-EUDCGm4jymPpBcRmr-KM_OLHCbq-w9281hw,25252
|
|
388
|
+
sqlmesh-0.182.1.dev6.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
|
389
|
+
sqlmesh-0.182.1.dev6.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
390
|
+
sqlmesh-0.182.1.dev6.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
391
|
+
sqlmesh-0.182.1.dev6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|