sqlmesh 0.194.1.dev6__py3-none-any.whl → 0.194.2.dev1__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 +5 -8
- sqlmesh/core/plan/evaluator.py +7 -1
- {sqlmesh-0.194.1.dev6.dist-info → sqlmesh-0.194.2.dev1.dist-info}/METADATA +1 -1
- {sqlmesh-0.194.1.dev6.dist-info → sqlmesh-0.194.2.dev1.dist-info}/RECORD +9 -9
- {sqlmesh-0.194.1.dev6.dist-info → sqlmesh-0.194.2.dev1.dist-info}/WHEEL +0 -0
- {sqlmesh-0.194.1.dev6.dist-info → sqlmesh-0.194.2.dev1.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.194.1.dev6.dist-info → sqlmesh-0.194.2.dev1.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.194.1.dev6.dist-info → sqlmesh-0.194.2.dev1.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.194.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 194,
|
|
20
|
+
__version__ = version = '0.194.2.dev1'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 194, 2, 'dev1')
|
sqlmesh/core/context.py
CHANGED
|
@@ -733,11 +733,9 @@ class GenericContext(BaseContext, t.Generic[C]):
|
|
|
733
733
|
raise SQLMeshError(f"Environment '{environment}' was not found.")
|
|
734
734
|
if environment_state.finalized_ts:
|
|
735
735
|
return environment_state.plan_id
|
|
736
|
-
|
|
737
|
-
"Environment '
|
|
738
|
-
|
|
739
|
-
environment_state.plan_id,
|
|
740
|
-
self.config.run.environment_check_interval,
|
|
736
|
+
self.console.log_warning(
|
|
737
|
+
f"Environment '{environment}' is being updated by plan '{environment_state.plan_id}'. "
|
|
738
|
+
f"Retrying in {self.config.run.environment_check_interval} seconds..."
|
|
741
739
|
)
|
|
742
740
|
time.sleep(self.config.run.environment_check_interval)
|
|
743
741
|
raise SQLMeshError(
|
|
@@ -774,9 +772,8 @@ class GenericContext(BaseContext, t.Generic[C]):
|
|
|
774
772
|
)
|
|
775
773
|
done = True
|
|
776
774
|
except CircuitBreakerError:
|
|
777
|
-
|
|
778
|
-
"Environment '
|
|
779
|
-
environment,
|
|
775
|
+
self.console.log_warning(
|
|
776
|
+
f"Environment '{environment}' modified while running. Restarting the run..."
|
|
780
777
|
)
|
|
781
778
|
if exit_on_env_update:
|
|
782
779
|
interrupted = True
|
sqlmesh/core/plan/evaluator.py
CHANGED
|
@@ -400,7 +400,13 @@ class BuiltInPlanEvaluator(PlanEvaluator):
|
|
|
400
400
|
|
|
401
401
|
snapshots_to_restate: t.Dict[SnapshotId, t.Tuple[SnapshotTableInfo, Interval]] = {}
|
|
402
402
|
|
|
403
|
-
for
|
|
403
|
+
for env_summary in self.state_sync.get_environments_summary():
|
|
404
|
+
# Fetch the full environment object one at a time to avoid loading all environments into memory at once
|
|
405
|
+
env = self.state_sync.get_environment(env_summary.name)
|
|
406
|
+
if not env:
|
|
407
|
+
logger.warning("Environment %s not found", env_summary.name)
|
|
408
|
+
continue
|
|
409
|
+
|
|
404
410
|
keyed_snapshots = {s.name: s.table_info for s in env.snapshots}
|
|
405
411
|
|
|
406
412
|
# We dont just restate matching snapshots, we also have to restate anything downstream of them
|
|
@@ -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=LHT0v_MacJmFy2g56I4euRRi-7b2daYbAbuoZmXBKps,528
|
|
3
3
|
sqlmesh/magics.py,sha256=ysPC5ohXpgQ8IHQPwtQtwGoVypmVq_YBlm1noUueDIw,40448
|
|
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=pMIkBjaigneVqGkoGxOKVmT423RPfbDKX8TQ8D1SzpU,153466
|
|
15
15
|
sqlmesh/core/constants.py,sha256=pnQXs5cS61zqjS8szbA1IRYTZ_G5jIt8Qrw-gneQoqE,2594
|
|
16
|
-
sqlmesh/core/context.py,sha256=
|
|
16
|
+
sqlmesh/core/context.py,sha256=LyPmWyUjHhW415_yoH4IQ5KLEV8cY6gF2znjMewx4yY,118131
|
|
17
17
|
sqlmesh/core/context_diff.py,sha256=TCzM8egBE35DskpouOB-GQM2Qf5iUHWbRgiB5yZ6tzg,21552
|
|
18
18
|
sqlmesh/core/dialect.py,sha256=93cXYVuNoZ9CvJNTVn2Yz7WDOdHINwVXflbn0eZ-p14,49764
|
|
19
19
|
sqlmesh/core/environment.py,sha256=bNj-JCG_l13dwrp--YPIuGNsuWLTMLcFA5sY8IazVK8,12917
|
|
@@ -96,7 +96,7 @@ sqlmesh/core/model/seed.py,sha256=a0M-1zY1gOkN5ph2GQyataEdBSCtq50YjeFk2LyvInI,50
|
|
|
96
96
|
sqlmesh/core/plan/__init__.py,sha256=NKSvM7ZBVjw9ho3J65M1wFvG3KURB8PJ0FHHLmtSF44,443
|
|
97
97
|
sqlmesh/core/plan/builder.py,sha256=OS6igFQvPRLwIxuYT4WYcuWnuSrPfCQArUA6ohxFnZw,41341
|
|
98
98
|
sqlmesh/core/plan/definition.py,sha256=-jAO5EWvZdmn8jU7bMFJcprBPdfTVhSRgAvBPZ6kqBg,13613
|
|
99
|
-
sqlmesh/core/plan/evaluator.py,sha256=
|
|
99
|
+
sqlmesh/core/plan/evaluator.py,sha256=DkpJ78R33_RBx5MVY13CcGU0x2-EcKWkcrETsjuyn10,20484
|
|
100
100
|
sqlmesh/core/plan/explainer.py,sha256=SD7L41x-E_s4Cvf37wbP_-pdCrxdUkfsRKbFRIvVPG0,11826
|
|
101
101
|
sqlmesh/core/plan/stages.py,sha256=9BtcCgHYSvELrAkrOEhTuR1POAJNknLn_n4CmkqAC-4,21869
|
|
102
102
|
sqlmesh/core/snapshot/__init__.py,sha256=Z5HTetNCZGoKF1WAKXk4LWL9dc8EC8lwS2O4TtoBmt4,1317
|
|
@@ -282,7 +282,7 @@ sqlmesh/utils/pydantic.py,sha256=I898jAFqa3qU6lG2uPpRebVFncOUo8ZrLWM_R3K3DHU,116
|
|
|
282
282
|
sqlmesh/utils/rich.py,sha256=BpB47G0-JcU41LkGkeGKroexj4NOV5fox4-GOIXPgIc,3545
|
|
283
283
|
sqlmesh/utils/windows.py,sha256=r7Yin4WEwbvH7sKA3hOJtRsclmscNuBeCklCfVPvtQs,611
|
|
284
284
|
sqlmesh/utils/yaml.py,sha256=np-WVcwmwsKghCgAj1OBBMsK1SXSRn4wR-H37cGiFr8,2282
|
|
285
|
-
sqlmesh-0.194.
|
|
285
|
+
sqlmesh-0.194.2.dev1.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
|
|
286
286
|
web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
287
287
|
web/client/dist/index.html,sha256=w71qWSLmp-xwmVJO8m41k8Rtni3iZlF0hmhiTr-NeCI,5472
|
|
288
288
|
web/client/dist/assets/Audits-sYYNn2gO.js,sha256=zSAKkif2kU0JuPH05xjNYITNPmsbDlvLKUc2-orr8AY,1041
|
|
@@ -400,8 +400,8 @@ web/server/api/endpoints/models.py,sha256=ud-lRwriyI_OYg9tZchrBgeiXELiRTLNEodraf
|
|
|
400
400
|
web/server/api/endpoints/modules.py,sha256=8hqqgonGay_mJmpCw0IdbjsPhWlQH2VLdKAqha-myac,468
|
|
401
401
|
web/server/api/endpoints/plan.py,sha256=OYuQ_4dgbhG9ibTcX1a8mvYgH3ANxw9Fhbb4wg6QWqc,9222
|
|
402
402
|
web/server/api/endpoints/table_diff.py,sha256=SCy3-pr5x6bEEiOaZGCDbiHQhpgxwmnz3Acqa2Ie6jI,2090
|
|
403
|
-
sqlmesh-0.194.
|
|
404
|
-
sqlmesh-0.194.
|
|
405
|
-
sqlmesh-0.194.
|
|
406
|
-
sqlmesh-0.194.
|
|
407
|
-
sqlmesh-0.194.
|
|
403
|
+
sqlmesh-0.194.2.dev1.dist-info/METADATA,sha256=opZHoDwXTwtJ0F2lv2WITdUBb4QaJm2j9ewq6OAi0As,26690
|
|
404
|
+
sqlmesh-0.194.2.dev1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
405
|
+
sqlmesh-0.194.2.dev1.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
406
|
+
sqlmesh-0.194.2.dev1.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
407
|
+
sqlmesh-0.194.2.dev1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|