sqlmesh 0.187.4.dev2__py3-none-any.whl → 0.187.5.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-0.187.4.dev2.dist-info → sqlmesh-0.187.5.dev1.dist-info}/METADATA +1 -1
- {sqlmesh-0.187.4.dev2.dist-info → sqlmesh-0.187.5.dev1.dist-info}/RECORD +8 -8
- web/server/api/endpoints/lineage.py +7 -2
- {sqlmesh-0.187.4.dev2.dist-info → sqlmesh-0.187.5.dev1.dist-info}/WHEEL +0 -0
- {sqlmesh-0.187.4.dev2.dist-info → sqlmesh-0.187.5.dev1.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.187.4.dev2.dist-info → sqlmesh-0.187.5.dev1.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.187.4.dev2.dist-info → sqlmesh-0.187.5.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.187.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 187,
|
|
20
|
+
__version__ = version = '0.187.5.dev1'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 187, 5, 'dev1')
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
sqlmesh/__init__.py,sha256=69xw6bTmi4cW90M-sl3g6wLDgxVcLHcKg1q8GS3lqyA,7466
|
|
2
|
-
sqlmesh/_version.py,sha256=
|
|
2
|
+
sqlmesh/_version.py,sha256=KeTEd4YfeSa58nf_dD-CJIP2P7y1CiUn76aP7hBhmec,528
|
|
3
3
|
sqlmesh/magics.py,sha256=JHorAZNtezf123jmTyNSoUC9yHmv-08hMP205PJmmIo,39750
|
|
4
4
|
sqlmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
sqlmesh/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -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.187.
|
|
273
|
+
sqlmesh-0.187.5.dev1.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=M50OuwjW63dRCS0Dz40Yecgvw9ecLFqizbTa6gv5Nd4,5472
|
|
276
276
|
web/client/dist/assets/Audits-BPlxzqeG.js,sha256=TCx1qCjCGgmUSvH6HoPr5t8ztbRXMlOxrcW4o7hRjlA,1041
|
|
@@ -382,14 +382,14 @@ web/server/api/endpoints/directories.py,sha256=Aa8U4pTs3Saj5DnJ9TDnX9mZois-EXgpc
|
|
|
382
382
|
web/server/api/endpoints/environments.py,sha256=g3YC6j4LLlG_wjJqn-Hrz78BWmgS7vhUhzaycsiez00,2124
|
|
383
383
|
web/server/api/endpoints/events.py,sha256=tjhOhGe9jt7L1mOLLapl5qTvicDRnP5lPZHSq9OnSVI,932
|
|
384
384
|
web/server/api/endpoints/files.py,sha256=HogdDH35tHBPLu_4vwj2aXrAqikA2UdkCOLv5QXf0Ng,6720
|
|
385
|
-
web/server/api/endpoints/lineage.py,sha256=
|
|
385
|
+
web/server/api/endpoints/lineage.py,sha256=XU99RI-6Q9SidItGM5WLQMje8NhM5nZWHbtWxDwWeFE,6050
|
|
386
386
|
web/server/api/endpoints/meta.py,sha256=QKWWrHewGh5JS8mCSWXTKCIQwXw-TQfaT9tWt_SsNY4,1032
|
|
387
387
|
web/server/api/endpoints/models.py,sha256=ud-lRwriyI_OYg9tZchrBgeiXELiRTLNEodrafB7Ndk,4697
|
|
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.187.
|
|
392
|
-
sqlmesh-0.187.
|
|
393
|
-
sqlmesh-0.187.
|
|
394
|
-
sqlmesh-0.187.
|
|
395
|
-
sqlmesh-0.187.
|
|
391
|
+
sqlmesh-0.187.5.dev1.dist-info/METADATA,sha256=At5VawwteJIL0tfXriaJfSP5FzUNtmbm5YqkdzNyFa4,25550
|
|
392
|
+
sqlmesh-0.187.5.dev1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
393
|
+
sqlmesh-0.187.5.dev1.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
394
|
+
sqlmesh-0.187.5.dev1.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
395
|
+
sqlmesh-0.187.5.dev1.dist-info/RECORD,,
|
|
@@ -109,6 +109,9 @@ def create_models_only_lineage_adjacency_list(
|
|
|
109
109
|
"""Create an adjacency list representation of a column's lineage graph only with models"""
|
|
110
110
|
graph: t.Dict[str, t.Dict[str, LineageColumn]] = defaultdict(dict)
|
|
111
111
|
nodes = [(model_name, column_name)]
|
|
112
|
+
# visited is a set of tuples of (model_name, column_name) to prevent infinite recursion
|
|
113
|
+
visited = set()
|
|
114
|
+
visited.add((model_name, column_name))
|
|
112
115
|
while nodes:
|
|
113
116
|
model_name, column = nodes.pop(0)
|
|
114
117
|
model = context.get_model(model_name)
|
|
@@ -118,8 +121,10 @@ def create_models_only_lineage_adjacency_list(
|
|
|
118
121
|
context, model_name, quote_column(column, model.dialect)
|
|
119
122
|
).items():
|
|
120
123
|
for column_name in column_names:
|
|
121
|
-
|
|
122
|
-
|
|
124
|
+
if (table, column_name) not in visited:
|
|
125
|
+
dependencies[table].add(column_name)
|
|
126
|
+
nodes.append((table, column_name))
|
|
127
|
+
visited.add((table, column_name))
|
|
123
128
|
|
|
124
129
|
graph[model_name][column] = LineageColumn(models=dependencies)
|
|
125
130
|
return graph
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|