sqlmesh 0.184.4.dev8__py3-none-any.whl → 0.184.4.dev10__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/cli/main.py +7 -0
- sqlmesh/core/state_sync/db/environment.py +2 -2
- sqlmesh/core/state_sync/db/facade.py +4 -4
- {sqlmesh-0.184.4.dev8.dist-info → sqlmesh-0.184.4.dev10.dist-info}/METADATA +1 -1
- {sqlmesh-0.184.4.dev8.dist-info → sqlmesh-0.184.4.dev10.dist-info}/RECORD +10 -10
- {sqlmesh-0.184.4.dev8.dist-info → sqlmesh-0.184.4.dev10.dist-info}/WHEEL +0 -0
- {sqlmesh-0.184.4.dev8.dist-info → sqlmesh-0.184.4.dev10.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.184.4.dev8.dist-info → sqlmesh-0.184.4.dev10.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.184.4.dev8.dist-info → sqlmesh-0.184.4.dev10.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.184.4.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 184, 4, '
|
|
20
|
+
__version__ = version = '0.184.4.dev10'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 184, 4, 'dev10')
|
sqlmesh/cli/main.py
CHANGED
|
@@ -346,11 +346,13 @@ def diff(ctx: click.Context, environment: t.Optional[str] = None) -> None:
|
|
|
346
346
|
"--skip-tests",
|
|
347
347
|
is_flag=True,
|
|
348
348
|
help="Skip tests prior to generating the plan if they are defined.",
|
|
349
|
+
default=None,
|
|
349
350
|
)
|
|
350
351
|
@click.option(
|
|
351
352
|
"--skip-linter",
|
|
352
353
|
is_flag=True,
|
|
353
354
|
help="Skip linting prior to generating the plan if the linter is enabled.",
|
|
355
|
+
default=None,
|
|
354
356
|
)
|
|
355
357
|
@click.option(
|
|
356
358
|
"--restate-model",
|
|
@@ -363,17 +365,20 @@ def diff(ctx: click.Context, environment: t.Optional[str] = None) -> None:
|
|
|
363
365
|
"--no-gaps",
|
|
364
366
|
is_flag=True,
|
|
365
367
|
help="Ensure that new snapshots have no data gaps when comparing to existing snapshots for matching models in the target environment.",
|
|
368
|
+
default=None,
|
|
366
369
|
)
|
|
367
370
|
@click.option(
|
|
368
371
|
"--skip-backfill",
|
|
369
372
|
"--dry-run",
|
|
370
373
|
is_flag=True,
|
|
371
374
|
help="Skip the backfill step and only create a virtual update for the plan.",
|
|
375
|
+
default=None,
|
|
372
376
|
)
|
|
373
377
|
@click.option(
|
|
374
378
|
"--empty-backfill",
|
|
375
379
|
is_flag=True,
|
|
376
380
|
help="Produce empty backfill. Like --skip-backfill no models will be backfilled, unlike --skip-backfill missing intervals will be recorded as if they were backfilled.",
|
|
381
|
+
default=None,
|
|
377
382
|
)
|
|
378
383
|
@click.option(
|
|
379
384
|
"--forward-only",
|
|
@@ -439,6 +444,7 @@ def diff(ctx: click.Context, environment: t.Optional[str] = None) -> None:
|
|
|
439
444
|
"--run",
|
|
440
445
|
is_flag=True,
|
|
441
446
|
help="Run latest intervals as part of the plan application (prod environment only).",
|
|
447
|
+
default=None,
|
|
442
448
|
)
|
|
443
449
|
@click.option(
|
|
444
450
|
"--enable-preview",
|
|
@@ -450,6 +456,7 @@ def diff(ctx: click.Context, environment: t.Optional[str] = None) -> None:
|
|
|
450
456
|
"--diff-rendered",
|
|
451
457
|
is_flag=True,
|
|
452
458
|
help="Output text differences for the rendered versions of the models and standalone audits",
|
|
459
|
+
default=None,
|
|
453
460
|
)
|
|
454
461
|
@opt.verbose
|
|
455
462
|
@click.pass_context
|
|
@@ -152,8 +152,8 @@ class EnvironmentState:
|
|
|
152
152
|
stored_plan_id = stored_plan_id_row[0]
|
|
153
153
|
if stored_plan_id != environment.plan_id:
|
|
154
154
|
raise SQLMeshError(
|
|
155
|
-
f"
|
|
156
|
-
f"
|
|
155
|
+
f"Another plan ({stored_plan_id}) was applied to the target environment '{environment.name}' while your current plan "
|
|
156
|
+
f"({environment.plan_id}) was still in progress, interrupting it. Please re-apply your plan to resolve this error."
|
|
157
157
|
)
|
|
158
158
|
|
|
159
159
|
environment.finalized_ts = now_timestamp()
|
|
@@ -205,9 +205,8 @@ class EngineAdapterStateSync(StateSync):
|
|
|
205
205
|
if not existing_environment.expired:
|
|
206
206
|
if environment.previous_plan_id != existing_environment.plan_id:
|
|
207
207
|
raise ConflictingPlanError(
|
|
208
|
-
f"
|
|
209
|
-
f"
|
|
210
|
-
"Please recreate the plan and try again"
|
|
208
|
+
f"Another plan ({existing_environment.plan_id}) was applied to the target environment '{environment.name}' while your current plan "
|
|
209
|
+
f"({environment.plan_id}) was still in progress, interrupting it. Please re-apply your plan to resolve this error."
|
|
211
210
|
)
|
|
212
211
|
if no_gaps_snapshot_names != set():
|
|
213
212
|
snapshots = self.get_snapshots(environment.snapshots).values()
|
|
@@ -614,7 +613,8 @@ class EngineAdapterStateSync(StateSync):
|
|
|
614
613
|
|
|
615
614
|
if missing_intervals:
|
|
616
615
|
raise SQLMeshError(
|
|
617
|
-
f"Detected
|
|
616
|
+
f"Detected missing intervals for model {target_snapshot.name}, interrupting your current plan. "
|
|
617
|
+
"Please re-apply your plan to resolve this error."
|
|
618
618
|
)
|
|
619
619
|
|
|
620
620
|
@contextlib.contextmanager
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
sqlmesh/__init__.py,sha256=DRovDXI-9D9xeYDP7t8Fq7mI31S2btlN-LHPOK3y7PA,7240
|
|
2
|
-
sqlmesh/_version.py,sha256=
|
|
2
|
+
sqlmesh/_version.py,sha256=wWf2iNbleus0p_7xVqP5tYksKXvfBk4PmrlPrFeYTfg,530
|
|
3
3
|
sqlmesh/magics.py,sha256=aeOyTdeNnyGzGtJXECDAbqJ8OAplrV4UAYl0I2hhtig,39670
|
|
4
4
|
sqlmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
sqlmesh/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -7,7 +7,7 @@ sqlmesh/cicd/bot.py,sha256=2zlbn-DXkqQzr3lA0__IGU4XaIfXBXBKLWXNI2DRJX8,759
|
|
|
7
7
|
sqlmesh/cicd/config.py,sha256=mpgkisSBBovlNrNZir2unT8Wes6b38RW2UsU_o4e8vY,109
|
|
8
8
|
sqlmesh/cli/__init__.py,sha256=MAXAyO7isbyM-PaSdFjkJNcjn32WjOl0XzxT5gvp_vo,1690
|
|
9
9
|
sqlmesh/cli/example_project.py,sha256=QAFQbw_kzqn30GLTthqsuWXbFDBpX8W6RsCgQ-jx65M,9308
|
|
10
|
-
sqlmesh/cli/main.py,sha256=
|
|
10
|
+
sqlmesh/cli/main.py,sha256=WNwiqXjbnlfr3ky159IXIMZWd1V4SNx1cZHjNSAyd9Q,32269
|
|
11
11
|
sqlmesh/cli/options.py,sha256=aC_L5WnMScKzMU55BD1Y-8R-QzqCkPSYrlCI-payHRA,1333
|
|
12
12
|
sqlmesh/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
13
|
sqlmesh/core/_typing.py,sha256=e1f7xO2aZCy38M_3VoDy-XI3shyd99-IFctgIFSgXWM,497
|
|
@@ -107,8 +107,8 @@ sqlmesh/core/state_sync/cache.py,sha256=0AsYdQyBqbLdJvkBQ-hDAipsvnn_jSps-nya-Q4X
|
|
|
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
|
-
sqlmesh/core/state_sync/db/environment.py,sha256=
|
|
111
|
-
sqlmesh/core/state_sync/db/facade.py,sha256=
|
|
110
|
+
sqlmesh/core/state_sync/db/environment.py,sha256=EVx7YWS7XEHcCjXGNZqm5Mvax3WeYcjTswWErCxrgy8,13570
|
|
111
|
+
sqlmesh/core/state_sync/db/facade.py,sha256=GOrcJSWeFxLbqf2fuGGLewYCoRhDoXBoLA4AsJ5MixI,25558
|
|
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
114
|
sqlmesh/core/state_sync/db/snapshot.py,sha256=vU96XSRtTwCM21jch-KubGK3HfdOK78aZ9sqROQxL6s,29425
|
|
@@ -268,7 +268,7 @@ sqlmesh/utils/pydantic.py,sha256=-u69PDY-4FLR7ODNKBoN7PsPNmZ0wdhsJcCAG2P6vyY,110
|
|
|
268
268
|
sqlmesh/utils/rich.py,sha256=xNZyPCqEc4TAlJlsEthg-5eYUWpaizz0QjBzO7a1Yv4,1509
|
|
269
269
|
sqlmesh/utils/windows.py,sha256=r7Yin4WEwbvH7sKA3hOJtRsclmscNuBeCklCfVPvtQs,611
|
|
270
270
|
sqlmesh/utils/yaml.py,sha256=np-WVcwmwsKghCgAj1OBBMsK1SXSRn4wR-H37cGiFr8,2282
|
|
271
|
-
sqlmesh-0.184.4.
|
|
271
|
+
sqlmesh-0.184.4.dev10.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
|
|
272
272
|
web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
273
273
|
web/client/dist/index.html,sha256=x9qfdHkVkXOwWRFRCZGaixiLj5e9tOQsCDRR92vW9QI,5472
|
|
274
274
|
web/client/dist/assets/Audits-cGDtiiKB.js,sha256=jrS4x1nQ8Klx67744_LjNI2oBOI9XnnygDR-0wmlme8,1041
|
|
@@ -386,8 +386,8 @@ web/server/api/endpoints/models.py,sha256=ud-lRwriyI_OYg9tZchrBgeiXELiRTLNEodraf
|
|
|
386
386
|
web/server/api/endpoints/modules.py,sha256=8hqqgonGay_mJmpCw0IdbjsPhWlQH2VLdKAqha-myac,468
|
|
387
387
|
web/server/api/endpoints/plan.py,sha256=OYuQ_4dgbhG9ibTcX1a8mvYgH3ANxw9Fhbb4wg6QWqc,9222
|
|
388
388
|
web/server/api/endpoints/table_diff.py,sha256=Wd5YxeKbZB7AkrDvqFgvV9ZQlnKYOF1n5W_w2EHE_Zw,2085
|
|
389
|
-
sqlmesh-0.184.4.
|
|
390
|
-
sqlmesh-0.184.4.
|
|
391
|
-
sqlmesh-0.184.4.
|
|
392
|
-
sqlmesh-0.184.4.
|
|
393
|
-
sqlmesh-0.184.4.
|
|
389
|
+
sqlmesh-0.184.4.dev10.dist-info/METADATA,sha256=Qwcbn_5ZqUwPcSrnKhoINbWTAMJ4pJv9Td9UdjAXRx8,25499
|
|
390
|
+
sqlmesh-0.184.4.dev10.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
|
391
|
+
sqlmesh-0.184.4.dev10.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
392
|
+
sqlmesh-0.184.4.dev10.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
393
|
+
sqlmesh-0.184.4.dev10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|