sqlmesh 0.188.1.dev10__py3-none-any.whl → 0.188.1.dev12__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 +12 -6
- sqlmesh/core/selector.py +11 -1
- {sqlmesh-0.188.1.dev10.dist-info → sqlmesh-0.188.1.dev12.dist-info}/METADATA +1 -1
- {sqlmesh-0.188.1.dev10.dist-info → sqlmesh-0.188.1.dev12.dist-info}/RECORD +9 -9
- {sqlmesh-0.188.1.dev10.dist-info → sqlmesh-0.188.1.dev12.dist-info}/WHEEL +0 -0
- {sqlmesh-0.188.1.dev10.dist-info → sqlmesh-0.188.1.dev12.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.188.1.dev10.dist-info → sqlmesh-0.188.1.dev12.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.188.1.dev10.dist-info → sqlmesh-0.188.1.dev12.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.188.1.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 188, 1, '
|
|
20
|
+
__version__ = version = '0.188.1.dev12'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 188, 1, 'dev12')
|
sqlmesh/core/context.py
CHANGED
|
@@ -1448,12 +1448,18 @@ class GenericContext(BaseContext, t.Generic[C]):
|
|
|
1448
1448
|
|
|
1449
1449
|
models_override: t.Optional[UniqueKeyDict[str, Model]] = None
|
|
1450
1450
|
if select_models:
|
|
1451
|
-
|
|
1452
|
-
select_models
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1451
|
+
try:
|
|
1452
|
+
models_override = model_selector.select_models(
|
|
1453
|
+
select_models,
|
|
1454
|
+
environment,
|
|
1455
|
+
fallback_env_name=create_from or c.PROD,
|
|
1456
|
+
ensure_finalized_snapshots=self.config.plan.use_finalized_state,
|
|
1457
|
+
)
|
|
1458
|
+
except SQLMeshError as e:
|
|
1459
|
+
logger.exception(e) # ensure the full stack trace is logged
|
|
1460
|
+
raise PlanError(
|
|
1461
|
+
f"{e}\nCheck the SQLMesh log file for the full stack trace.\nIf the model has been fixed locally, please ensure that the --select-model expression includes it."
|
|
1462
|
+
)
|
|
1457
1463
|
if not backfill_models:
|
|
1458
1464
|
# Only backfill selected models unless explicitly specified.
|
|
1459
1465
|
backfill_models = model_selector.expand_model_selections(select_models)
|
sqlmesh/core/selector.py
CHANGED
|
@@ -16,6 +16,7 @@ from sqlmesh.core.model import update_model_schemas
|
|
|
16
16
|
from sqlmesh.utils import UniqueKeyDict
|
|
17
17
|
from sqlmesh.utils.dag import DAG
|
|
18
18
|
from sqlmesh.utils.git import GitClient
|
|
19
|
+
from sqlmesh.utils.errors import SQLMeshError
|
|
19
20
|
|
|
20
21
|
|
|
21
22
|
if t.TYPE_CHECKING:
|
|
@@ -111,7 +112,16 @@ class Selector:
|
|
|
111
112
|
def get_model(fqn: str) -> t.Optional[Model]:
|
|
112
113
|
if fqn not in all_selected_models and fqn in env_models:
|
|
113
114
|
# Unselected modified or added model.
|
|
114
|
-
|
|
115
|
+
model_from_env = env_models[fqn]
|
|
116
|
+
try:
|
|
117
|
+
# this triggers a render_query() which can throw an exception
|
|
118
|
+
model_from_env.depends_on
|
|
119
|
+
return model_from_env
|
|
120
|
+
except Exception as e:
|
|
121
|
+
raise SQLMeshError(
|
|
122
|
+
f"Model '{model_from_env.name}' sourced from state cannot be rendered "
|
|
123
|
+
f"in the local environment due to:\n> {str(e)}"
|
|
124
|
+
) from e
|
|
115
125
|
if fqn in all_selected_models and fqn in self._models:
|
|
116
126
|
# Selected modified or removed model.
|
|
117
127
|
return self._models[fqn]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
sqlmesh/__init__.py,sha256=69xw6bTmi4cW90M-sl3g6wLDgxVcLHcKg1q8GS3lqyA,7466
|
|
2
|
-
sqlmesh/_version.py,sha256=
|
|
2
|
+
sqlmesh/_version.py,sha256=zzmNPzt-bPSoNlfoQFwM0kdqph7tI7khUDgxPlGCh3Q,530
|
|
3
3
|
sqlmesh/magics.py,sha256=fu7-OeT_0_TAkWZOLoiioE3-3iFpvTRxFCbQUlRnfuw,39944
|
|
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=ZAaGLOWBJGBxPzLV7KZZ9akPExgD5m5AboCM8O0Q0nY,150944
|
|
15
15
|
sqlmesh/core/constants.py,sha256=oqt6zjepUhQoWlgapKn_HpG7Pu9mrFwepdX5caNfJUI,2499
|
|
16
|
-
sqlmesh/core/context.py,sha256=
|
|
16
|
+
sqlmesh/core/context.py,sha256=vm2qNa9WpYuRLxBCoMN4stK6XLkDK29niDH9d7I6RVw,117177
|
|
17
17
|
sqlmesh/core/context_diff.py,sha256=I7luvY2za30E5ynVaFPaEQQEmNViJpWAmW48PGSyDCU,21135
|
|
18
18
|
sqlmesh/core/dialect.py,sha256=fPTV517IOS0nWMxYznNNQnXkQkFFrPOSKe8ghsQ0o8A,49759
|
|
19
19
|
sqlmesh/core/environment.py,sha256=Fsih6WZ7Tx4ec0XIlmIIspUWcmijPNW5uHPRQSWuhA8,12315
|
|
@@ -27,7 +27,7 @@ sqlmesh/core/renderer.py,sha256=KOr7rQ-RfWiS51cEj2fzdhxCrYbU0A5wNTGwKyeqLt4,2663
|
|
|
27
27
|
sqlmesh/core/scheduler.py,sha256=TB03rSvPyaPMRANOJq_O_cNXvu0fc5rVaDVC9olE5kg,34196
|
|
28
28
|
sqlmesh/core/schema_diff.py,sha256=Sp2MoqAngp-yTYevkLaf9jb26SuAdGXoZ54g5MjWowU,30516
|
|
29
29
|
sqlmesh/core/schema_loader.py,sha256=lvrI9k7hr1P4X4E6t3U-KrcuvdQuw0UdNlN90P2s52w,3563
|
|
30
|
-
sqlmesh/core/selector.py,sha256=
|
|
30
|
+
sqlmesh/core/selector.py,sha256=_hcktUQiKXCPE-mOqXClHUVWBfEZKMPVVNDtpSSRhbI,12660
|
|
31
31
|
sqlmesh/core/signal.py,sha256=yVLXewYP6eH0vt-EwaIaI2WwHz6hWsVr-Kb2m4kP1FU,1353
|
|
32
32
|
sqlmesh/core/table_diff.py,sha256=AbTbmbV5aP-rqa-LT4A1MRnm5K-jmDi2F3N5cz-pFXQ,24838
|
|
33
33
|
sqlmesh/core/user.py,sha256=EJ6R4R1iK67n80vBoCCsidF56IR7xEYqiCEO-nrVMso,1660
|
|
@@ -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.188.1.
|
|
273
|
+
sqlmesh-0.188.1.dev12.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=SZAIyEMRTaAz5h63Jg1UPib6v2scbURBURXaYWbeels,5472
|
|
276
276
|
web/client/dist/assets/Audits-yd9300pl.js,sha256=Vv7BcvM07rW2_89mRd0suy-0FuYGjDX4NI8dQTw7u5s,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.188.1.
|
|
392
|
-
sqlmesh-0.188.1.
|
|
393
|
-
sqlmesh-0.188.1.
|
|
394
|
-
sqlmesh-0.188.1.
|
|
395
|
-
sqlmesh-0.188.1.
|
|
391
|
+
sqlmesh-0.188.1.dev12.dist-info/METADATA,sha256=BuokdCT-k854kDpbNB5fVPjyUQG4-4-1_KQ_rpEC3LY,26532
|
|
392
|
+
sqlmesh-0.188.1.dev12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
393
|
+
sqlmesh-0.188.1.dev12.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
394
|
+
sqlmesh-0.188.1.dev12.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
395
|
+
sqlmesh-0.188.1.dev12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|