sqlmesh 0.184.4.dev10__py3-none-any.whl → 0.184.4.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/snapshot/evaluator.py +4 -1
- sqlmesh/dbt/adapter.py +11 -13
- {sqlmesh-0.184.4.dev10.dist-info → sqlmesh-0.184.4.dev12.dist-info}/METADATA +1 -1
- {sqlmesh-0.184.4.dev10.dist-info → sqlmesh-0.184.4.dev12.dist-info}/RECORD +9 -9
- {sqlmesh-0.184.4.dev10.dist-info → sqlmesh-0.184.4.dev12.dist-info}/WHEEL +0 -0
- {sqlmesh-0.184.4.dev10.dist-info → sqlmesh-0.184.4.dev12.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.184.4.dev10.dist-info → sqlmesh-0.184.4.dev12.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.184.4.dev10.dist-info → sqlmesh-0.184.4.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.184.4.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 184, 4, '
|
|
20
|
+
__version__ = version = '0.184.4.dev12'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 184, 4, 'dev12')
|
|
@@ -978,7 +978,6 @@ class SnapshotEvaluator:
|
|
|
978
978
|
end=end,
|
|
979
979
|
execution_time=execution_time,
|
|
980
980
|
engine_adapter=adapter,
|
|
981
|
-
snapshots=snapshots,
|
|
982
981
|
deployability_index=deployability_index,
|
|
983
982
|
table_mapping=table_mapping,
|
|
984
983
|
runtime_stage=RuntimeStage.PROMOTING,
|
|
@@ -988,8 +987,12 @@ class SnapshotEvaluator:
|
|
|
988
987
|
view_name=view_name,
|
|
989
988
|
model=snapshot.model,
|
|
990
989
|
environment=environment_naming_info.name,
|
|
990
|
+
snapshots=snapshots,
|
|
991
991
|
**render_kwargs,
|
|
992
992
|
)
|
|
993
|
+
|
|
994
|
+
snapshot_by_name = {s.name: s for s in (snapshots or {}).values()}
|
|
995
|
+
render_kwargs["snapshots"] = snapshot_by_name
|
|
993
996
|
adapter.execute(snapshot.model.render_on_virtual_update(**render_kwargs))
|
|
994
997
|
|
|
995
998
|
if on_complete is not None:
|
sqlmesh/dbt/adapter.py
CHANGED
|
@@ -7,7 +7,7 @@ import typing as t
|
|
|
7
7
|
import pandas as pd
|
|
8
8
|
from sqlglot import exp, parse_one
|
|
9
9
|
|
|
10
|
-
from sqlmesh.core.dialect import normalize_and_quote, normalize_model_name
|
|
10
|
+
from sqlmesh.core.dialect import normalize_and_quote, normalize_model_name, schema_
|
|
11
11
|
from sqlmesh.core.engine_adapter import EngineAdapter
|
|
12
12
|
from sqlmesh.core.snapshot import DeployabilityIndex, Snapshot, to_table_mapping
|
|
13
13
|
from sqlmesh.utils.errors import ConfigError, ParsetimeAdapterCallError
|
|
@@ -245,14 +245,11 @@ class RuntimeAdapter(BaseAdapter):
|
|
|
245
245
|
def get_relation(
|
|
246
246
|
self, database: t.Optional[str], schema: str, identifier: str
|
|
247
247
|
) -> t.Optional[BaseRelation]:
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
quote_policy=self.quote_policy,
|
|
254
|
-
)
|
|
255
|
-
)
|
|
248
|
+
target_table = exp.table_(identifier, db=schema, catalog=database)
|
|
249
|
+
# Normalize before converting to a relation; otherwise, it will be too late,
|
|
250
|
+
# as quotes will have already been applied.
|
|
251
|
+
target_table = self._normalize(target_table)
|
|
252
|
+
return self.load_relation(self._table_to_relation(target_table))
|
|
256
253
|
|
|
257
254
|
def load_relation(self, relation: BaseRelation) -> t.Optional[BaseRelation]:
|
|
258
255
|
mapped_table = self._map_table_name(self._normalize(self._relation_to_table(relation)))
|
|
@@ -262,10 +259,11 @@ class RuntimeAdapter(BaseAdapter):
|
|
|
262
259
|
return self._table_to_relation(mapped_table)
|
|
263
260
|
|
|
264
261
|
def list_relations(self, database: t.Optional[str], schema: str) -> t.List[BaseRelation]:
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
262
|
+
target_schema = schema_(schema, catalog=database)
|
|
263
|
+
# Normalize before converting to a relation; otherwise, it will be too late,
|
|
264
|
+
# as quotes will have already been applied.
|
|
265
|
+
target_schema = self._normalize(target_schema)
|
|
266
|
+
return self.list_relations_without_caching(self._table_to_relation(target_schema))
|
|
269
267
|
|
|
270
268
|
def list_relations_without_caching(self, schema_relation: BaseRelation) -> t.List[BaseRelation]:
|
|
271
269
|
from sqlmesh.dbt.relation import RelationType
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
sqlmesh/__init__.py,sha256=DRovDXI-9D9xeYDP7t8Fq7mI31S2btlN-LHPOK3y7PA,7240
|
|
2
|
-
sqlmesh/_version.py,sha256=
|
|
2
|
+
sqlmesh/_version.py,sha256=KnDP9DXCxNjvzKWt7NPPyADhvZEqK8AgwIsp5N41MsA,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
|
|
@@ -100,7 +100,7 @@ sqlmesh/core/snapshot/__init__.py,sha256=Z5HTetNCZGoKF1WAKXk4LWL9dc8EC8lwS2O4Tto
|
|
|
100
100
|
sqlmesh/core/snapshot/cache.py,sha256=MRYi_koDvp2yeQ5NDGoNFzhuJTw7Vh7mI0oJyeVbqio,4022
|
|
101
101
|
sqlmesh/core/snapshot/categorizer.py,sha256=qGG5870mu1jR2whKisSBH_GFbsyh96RnzJDgkN7DV9g,2482
|
|
102
102
|
sqlmesh/core/snapshot/definition.py,sha256=PKzBLiQ1yIycGbmslEoQyJEwtfnJHsQuY_sl1xkBcvk,84081
|
|
103
|
-
sqlmesh/core/snapshot/evaluator.py,sha256=
|
|
103
|
+
sqlmesh/core/snapshot/evaluator.py,sha256=Y01dkakdX-Jvz3t8DAzJPLVt3eL2DRqz7SabgZ7ME7g,89430
|
|
104
104
|
sqlmesh/core/state_sync/__init__.py,sha256=B60xj-_Xk-4jas3UphLvwkuf04G-9AyGckcblXE0aRg,869
|
|
105
105
|
sqlmesh/core/state_sync/base.py,sha256=GaSyUg2TgDZFZrlLP5QF0Wjwl47KuIj1D3NSZSjL12c,18346
|
|
106
106
|
sqlmesh/core/state_sync/cache.py,sha256=0AsYdQyBqbLdJvkBQ-hDAipsvnn_jSps-nya-Q4XeL0,5337
|
|
@@ -121,7 +121,7 @@ sqlmesh/core/test/discovery.py,sha256=WXIwPidLoacAGHoT_3TVFFEKamG89nHNtaMsZ01uGj
|
|
|
121
121
|
sqlmesh/core/test/result.py,sha256=CR8c_tdBK7p8jx-dMibbj4zCtxVAmE_Xah9GQ5oPBTE,4218
|
|
122
122
|
sqlmesh/core/test/runner.py,sha256=yno0GDUW9angCy2ZeLIZE9lKrqBiJOnFibu6RLuct6I,6647
|
|
123
123
|
sqlmesh/dbt/__init__.py,sha256=KUv-lW5sG9D2ceXAIzA4MLcjyhzq3E-7qJP4P_PH2EU,144
|
|
124
|
-
sqlmesh/dbt/adapter.py,sha256=
|
|
124
|
+
sqlmesh/dbt/adapter.py,sha256=NAY8E7R9S-DsKn3LnPUvZvQNONRE7hthmuBs1a5ao64,16761
|
|
125
125
|
sqlmesh/dbt/basemodel.py,sha256=XuiK9-r5JWzvZGEk98Jt4ukR2exfMDsotGZqYx5xluc,12561
|
|
126
126
|
sqlmesh/dbt/builtin.py,sha256=fyzv4qR1isfnID1oWz-r46oDQvS90DN5mMUEWgapvN8,15153
|
|
127
127
|
sqlmesh/dbt/column.py,sha256=Kvj_N3D_QegcoNQG7VqRiqy-FRfupud-6ilhlykBOgE,1873
|
|
@@ -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.dev12.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.dev12.dist-info/METADATA,sha256=LaXjeM88VGfFdldg5IBCYIjOHmHGGBNMugGNcA_J-vI,25499
|
|
390
|
+
sqlmesh-0.184.4.dev12.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
|
391
|
+
sqlmesh-0.184.4.dev12.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
392
|
+
sqlmesh-0.184.4.dev12.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
393
|
+
sqlmesh-0.184.4.dev12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|