semantic-link-labs 0.8.1__py3-none-any.whl → 0.8.2__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.
Potentially problematic release.
This version of semantic-link-labs might be problematic. Click here for more details.
- {semantic_link_labs-0.8.1.dist-info → semantic_link_labs-0.8.2.dist-info}/METADATA +3 -3
- {semantic_link_labs-0.8.1.dist-info → semantic_link_labs-0.8.2.dist-info}/RECORD +9 -9
- sempy_labs/_helper_functions.py +7 -6
- sempy_labs/_model_bpa.py +3 -1
- sempy_labs/_model_bpa_bulk.py +1 -1
- sempy_labs/_vertipaq.py +1 -1
- {semantic_link_labs-0.8.1.dist-info → semantic_link_labs-0.8.2.dist-info}/LICENSE +0 -0
- {semantic_link_labs-0.8.1.dist-info → semantic_link_labs-0.8.2.dist-info}/WHEEL +0 -0
- {semantic_link_labs-0.8.1.dist-info → semantic_link_labs-0.8.2.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: semantic-link-labs
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.2
|
|
4
4
|
Summary: Semantic Link Labs for Microsoft Fabric
|
|
5
5
|
Author: Microsoft Corporation
|
|
6
6
|
License: MIT License
|
|
@@ -21,14 +21,13 @@ Requires-Dist: powerbiclient
|
|
|
21
21
|
Requires-Dist: polib
|
|
22
22
|
Requires-Dist: azure.mgmt.resource
|
|
23
23
|
Requires-Dist: jsonpath-ng
|
|
24
|
-
Requires-Dist: deltalake
|
|
25
24
|
Provides-Extra: test
|
|
26
25
|
Requires-Dist: pytest >=8.2.1 ; extra == 'test'
|
|
27
26
|
|
|
28
27
|
# Semantic Link Labs
|
|
29
28
|
|
|
30
29
|
[](https://badge.fury.io/py/semantic-link-labs)
|
|
31
|
-
[](https://readthedocs.org/projects/semantic-link-labs/)
|
|
32
31
|
[](https://github.com/psf/black)
|
|
33
32
|
[](https://pepy.tech/project/semantic-link-labs)
|
|
34
33
|
|
|
@@ -104,6 +103,7 @@ An even better way to ensure the semantic-link-labs library is available in your
|
|
|
104
103
|
2. Select your newly created environment within the 'Environment' drop down in the navigation bar at the top of the notebook
|
|
105
104
|
|
|
106
105
|
## Version History
|
|
106
|
+
* [0.8.2](https://github.com/microsoft/semantic-link-labs/releases/tag/0.8.2) (October 2, 2024)
|
|
107
107
|
* [0.8.1](https://github.com/microsoft/semantic-link-labs/releases/tag/0.8.1) (October 2, 2024)
|
|
108
108
|
* [0.8.0](https://github.com/microsoft/semantic-link-labs/releases/tag/0.8.0) (September 25, 2024)
|
|
109
109
|
* [0.7.4](https://github.com/microsoft/semantic-link-labs/releases/tag/0.7.4) (September 16, 2024)
|
|
@@ -14,7 +14,7 @@ sempy_labs/_eventhouses.py,sha256=tVUYJkAcwoBZooXawJpCKzx2YypawKECrfKouRTkMJU,35
|
|
|
14
14
|
sempy_labs/_eventstreams.py,sha256=NV0YAC6V3nBxJIVKWH7ceAtooZoH9rA4zv45xTcb-t0,3556
|
|
15
15
|
sempy_labs/_generate_semantic_model.py,sha256=mvM1DDWEkyfU8Ee4NT9Zu52qZyCnmq0971esIjp_LpQ,13253
|
|
16
16
|
sempy_labs/_git.py,sha256=vXWv6e45H0OGIyzBvB-anSJYrBFjA2MVUYIjaUPd54I,12731
|
|
17
|
-
sempy_labs/_helper_functions.py,sha256=
|
|
17
|
+
sempy_labs/_helper_functions.py,sha256=7mTpsTZpW0M3lGIReSuGIgntnb_wcQr2Jm6FolxRClI,32310
|
|
18
18
|
sempy_labs/_icons.py,sha256=pwei9IrwbNAxmxCNgX_8cACwjhvmM6cYYZcS3sLR9jc,2696
|
|
19
19
|
sempy_labs/_kql_databases.py,sha256=DE_5un0QO5ayYiqKiMDinis0ZysmIWWaEoYQ9ach_8o,4110
|
|
20
20
|
sempy_labs/_kql_querysets.py,sha256=kH8diN3DxuCINlKhAvzyXKXtj0uJ0uhcxrWI9j097vU,3646
|
|
@@ -23,8 +23,8 @@ sempy_labs/_mirrored_warehouses.py,sha256=xcVnrNwi46snQiS5iFKcZe-GGoFLqva7qW4iOP
|
|
|
23
23
|
sempy_labs/_ml_experiments.py,sha256=fTqFB0qn0T1k4vGmaghvKUolb5Kvg_qfTOYl3ABknt8,3676
|
|
24
24
|
sempy_labs/_ml_models.py,sha256=nAISwah2fQI0OOJfBAEuI7d4uKu4DUIHi4BqUye6FQE,3572
|
|
25
25
|
sempy_labs/_model_auto_build.py,sha256=-qDwmFx3KMuIaaUU8CzmCX7CF7ZUVWWu-_GH2UhAU_8,5045
|
|
26
|
-
sempy_labs/_model_bpa.py,sha256=
|
|
27
|
-
sempy_labs/_model_bpa_bulk.py,sha256=
|
|
26
|
+
sempy_labs/_model_bpa.py,sha256=ow2UiiTGF_9nAldQxLdR4wmVrExXMYurhOVxu9pOFBQ,20377
|
|
27
|
+
sempy_labs/_model_bpa_bulk.py,sha256=35M6FnHP6T-3rkwUHOeL6BRj-aKL7lRxpPvJKnj8wwU,14944
|
|
28
28
|
sempy_labs/_model_bpa_rules.py,sha256=B8hg3_ktS5ql859nL3e9kdV8fNDBgMNO5j2hGrXp6po,44855
|
|
29
29
|
sempy_labs/_model_dependencies.py,sha256=rFPVDA6gLKxy2rDPtHHIvVJF9SmJz4xRe4n922bzWtA,13452
|
|
30
30
|
sempy_labs/_notebooks.py,sha256=K1ZZ9y-lOzDLeJ2UlCmJlN7kml5FRPmE0Bj5SvNDwq8,4339
|
|
@@ -34,7 +34,7 @@ sempy_labs/_refresh_semantic_model.py,sha256=Kb3sZf9ihBcbh2la6c7wuAhUvGnqrlNR2ob
|
|
|
34
34
|
sempy_labs/_spark.py,sha256=_gkmitnGIf0Q_wKDHcnkmGSyE6GtPgsi2QnudLcBWKU,19477
|
|
35
35
|
sempy_labs/_sql.py,sha256=p0CvDD3fF0IQdoFI6308-DDUFQR9V_qWpXfQvyX3znw,5356
|
|
36
36
|
sempy_labs/_translations.py,sha256=ocRtdgymcPYOT3jiYcVv9ze5i2gDjgLcTJBEl66pKtg,19771
|
|
37
|
-
sempy_labs/_vertipaq.py,sha256=
|
|
37
|
+
sempy_labs/_vertipaq.py,sha256=txae-LoCE8K8Z7lVmlC7FgIS6vVxwLtKhGcnU28ZuBk,35738
|
|
38
38
|
sempy_labs/_warehouses.py,sha256=qIDteSE5dFm0rkzF3Ouryb467VKxrHywNSSvtf_TcXM,3920
|
|
39
39
|
sempy_labs/_workspace_identity.py,sha256=2uum6Ojv1x3Zzp8JEAQ2ER9J5yafb_v_TgZwY5vdBwA,2120
|
|
40
40
|
sempy_labs/_workspaces.py,sha256=KZfQ1hAKhfIsq52ZF-RBptueWUh6-P-OA8YDfmSQbpM,10080
|
|
@@ -146,8 +146,8 @@ sempy_labs/report/_bpareporttemplate/definition/pages/d37dce724a0ccc30044b/page.
|
|
|
146
146
|
sempy_labs/report/_bpareporttemplate/definition/pages/d37dce724a0ccc30044b/visuals/ce8532a7e25020271077/visual.json,sha256=mlY6t9OlSe-Y6_QmXJpS1vggU6Y3FjISUKECL8FVSg8,931
|
|
147
147
|
sempy_labs/tom/__init__.py,sha256=Qbs8leW0fjzvWwOjyWK3Hjeehu7IvpB1beASGsi28bk,121
|
|
148
148
|
sempy_labs/tom/_model.py,sha256=tfC241UprOx8ZLGqnSnaAzi20qlghESc0uK95i2HaAs,165380
|
|
149
|
-
semantic_link_labs-0.8.
|
|
150
|
-
semantic_link_labs-0.8.
|
|
151
|
-
semantic_link_labs-0.8.
|
|
152
|
-
semantic_link_labs-0.8.
|
|
153
|
-
semantic_link_labs-0.8.
|
|
149
|
+
semantic_link_labs-0.8.2.dist-info/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
|
|
150
|
+
semantic_link_labs-0.8.2.dist-info/METADATA,sha256=1hsvBRmEpNCyw0quXQ3UDVsVS98cv0RYb8R3z0AMU4c,15783
|
|
151
|
+
semantic_link_labs-0.8.2.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
152
|
+
semantic_link_labs-0.8.2.dist-info/top_level.txt,sha256=kiQX1y42Dbein1l3Q8jMUYyRulDjdlc2tMepvtrvixQ,11
|
|
153
|
+
semantic_link_labs-0.8.2.dist-info/RECORD,,
|
sempy_labs/_helper_functions.py
CHANGED
|
@@ -13,7 +13,6 @@ from uuid import UUID
|
|
|
13
13
|
import sempy_labs._icons as icons
|
|
14
14
|
import urllib.parse
|
|
15
15
|
from azure.core.credentials import TokenCredential, AccessToken
|
|
16
|
-
import deltalake
|
|
17
16
|
|
|
18
17
|
|
|
19
18
|
def create_abfss_path(
|
|
@@ -1133,11 +1132,13 @@ def generate_guid():
|
|
|
1133
1132
|
return str(uuid.uuid4())
|
|
1134
1133
|
|
|
1135
1134
|
|
|
1136
|
-
def get_max_run_id(table_name: str) -> int:
|
|
1135
|
+
def get_max_run_id(lakehouse: str, table_name: str) -> int:
|
|
1137
1136
|
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1137
|
+
from pyspark.sql import SparkSession
|
|
1138
|
+
|
|
1139
|
+
spark = SparkSession.builder.getOrCreate()
|
|
1140
|
+
query = f"SELECT MAX(RunId) FROM {lakehouse}.{table_name}"
|
|
1141
|
+
dfSpark = spark.sql(query)
|
|
1142
|
+
max_run_id = dfSpark.collect()[0][0]
|
|
1142
1143
|
|
|
1143
1144
|
return max_run_id
|
sempy_labs/_model_bpa.py
CHANGED
|
@@ -350,7 +350,9 @@ def run_model_bpa(
|
|
|
350
350
|
if len(lakeT_filt) == 0:
|
|
351
351
|
runId = 1
|
|
352
352
|
else:
|
|
353
|
-
max_run_id = get_max_run_id(
|
|
353
|
+
max_run_id = get_max_run_id(
|
|
354
|
+
lakehouse=lakehouse, table_name=delta_table_name
|
|
355
|
+
)
|
|
354
356
|
runId = max_run_id + 1
|
|
355
357
|
|
|
356
358
|
now = datetime.datetime.now()
|
sempy_labs/_model_bpa_bulk.py
CHANGED
|
@@ -92,7 +92,7 @@ def run_model_bpa_bulk(
|
|
|
92
92
|
if len(lakeT_filt) == 0:
|
|
93
93
|
runId = 1
|
|
94
94
|
else:
|
|
95
|
-
max_run_id = get_max_run_id(table_name=output_table)
|
|
95
|
+
max_run_id = get_max_run_id(lakehouse=lakehouse, table_name=output_table)
|
|
96
96
|
runId = max_run_id + 1
|
|
97
97
|
|
|
98
98
|
if isinstance(workspace, str):
|
sempy_labs/_vertipaq.py
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|