semantic-link-labs 0.7.1__py3-none-any.whl → 0.7.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.7.1.dist-info → semantic_link_labs-0.7.2.dist-info}/METADATA +2 -2
- {semantic_link_labs-0.7.1.dist-info → semantic_link_labs-0.7.2.dist-info}/RECORD +6 -6
- sempy_labs/_query_scale_out.py +15 -3
- {semantic_link_labs-0.7.1.dist-info → semantic_link_labs-0.7.2.dist-info}/LICENSE +0 -0
- {semantic_link_labs-0.7.1.dist-info → semantic_link_labs-0.7.2.dist-info}/WHEEL +0 -0
- {semantic_link_labs-0.7.1.dist-info → semantic_link_labs-0.7.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.7.
|
|
3
|
+
Version: 0.7.2
|
|
4
4
|
Summary: Semantic Link Labs for Microsoft Fabric
|
|
5
5
|
Author: Microsoft Corporation
|
|
6
6
|
License: MIT License
|
|
@@ -25,7 +25,7 @@ Requires-Dist: pytest >=8.2.1 ; extra == 'test'
|
|
|
25
25
|
# Semantic Link Labs
|
|
26
26
|
|
|
27
27
|
[](https://badge.fury.io/py/semantic-link-labs)
|
|
28
|
-
[](https://readthedocs.org/projects/semantic-link-labs/)
|
|
29
29
|
[](https://github.com/psf/black)
|
|
30
30
|
[](https://pepy.tech/project/semantic-link-labs)
|
|
31
31
|
|
|
@@ -13,7 +13,7 @@ sempy_labs/_model_bpa_bulk.py,sha256=b0Y6XbzKQawExSW6yEpwgBlptFe7Y7rFtY3mombBun4
|
|
|
13
13
|
sempy_labs/_model_bpa_rules.py,sha256=jujUiwUbIJW16UR3tUgxmj21PdSUxjzfiEFEEf-w40Q,48095
|
|
14
14
|
sempy_labs/_model_dependencies.py,sha256=nZdqq2iMhZejnS_LCd2rpK6r1B7jWpa3URkxobRPifY,12986
|
|
15
15
|
sempy_labs/_one_lake_integration.py,sha256=eIuLxlw8eXfUH2avKhsyLmXZbTllSwGsz2j_HMAikpQ,6234
|
|
16
|
-
sempy_labs/_query_scale_out.py,sha256=
|
|
16
|
+
sempy_labs/_query_scale_out.py,sha256=tF4xxWr2WhD7SsIYZelH7iL2C8mn4cJhHq1j2cOamSk,14407
|
|
17
17
|
sempy_labs/_refresh_semantic_model.py,sha256=2qzP9KqmwA20RuL1o6Lt9bIjC-KtdX8ZgcTvJParg-w,7157
|
|
18
18
|
sempy_labs/_translations.py,sha256=BcrVIrBNSKtbFz4Y9t1Dh1SZCu0K4NHu7n01Z6O76IY,19665
|
|
19
19
|
sempy_labs/_vertipaq.py,sha256=zMKtcCQ2gpgoDLisTbTjFNe60Cg2PlAQ6HvkSlbpKPo,33660
|
|
@@ -104,8 +104,8 @@ sempy_labs/report/_bpareporttemplate/definition/pages/d37dce724a0ccc30044b/page.
|
|
|
104
104
|
sempy_labs/report/_bpareporttemplate/definition/pages/d37dce724a0ccc30044b/visuals/ce8532a7e25020271077/visual.json,sha256=mlY6t9OlSe-Y6_QmXJpS1vggU6Y3FjISUKECL8FVSg8,931
|
|
105
105
|
sempy_labs/tom/__init__.py,sha256=Qbs8leW0fjzvWwOjyWK3Hjeehu7IvpB1beASGsi28bk,121
|
|
106
106
|
sempy_labs/tom/_model.py,sha256=M-es2bES3Usj5uVmt5vwNmtm9vWzeqtVtKREpxjnjiI,151050
|
|
107
|
-
semantic_link_labs-0.7.
|
|
108
|
-
semantic_link_labs-0.7.
|
|
109
|
-
semantic_link_labs-0.7.
|
|
110
|
-
semantic_link_labs-0.7.
|
|
111
|
-
semantic_link_labs-0.7.
|
|
107
|
+
semantic_link_labs-0.7.2.dist-info/LICENSE,sha256=ws_MuBL-SCEBqPBFl9_FqZkaaydIJmxHrJG2parhU4M,1141
|
|
108
|
+
semantic_link_labs-0.7.2.dist-info/METADATA,sha256=LYlyxmPO3esRALDADbyyQR5Fvk8G_uSgmY4cCE6q3qY,11241
|
|
109
|
+
semantic_link_labs-0.7.2.dist-info/WHEEL,sha256=UvcQYKBHoFqaQd6LKyqHw9fxEolWLQnlzP0h_LgJAfI,91
|
|
110
|
+
semantic_link_labs-0.7.2.dist-info/top_level.txt,sha256=kiQX1y42Dbein1l3Q8jMUYyRulDjdlc2tMepvtrvixQ,11
|
|
111
|
+
semantic_link_labs-0.7.2.dist-info/RECORD,,
|
sempy_labs/_query_scale_out.py
CHANGED
|
@@ -207,11 +207,18 @@ def set_qso(
|
|
|
207
207
|
A pandas dataframe showing the current query scale-out settings.
|
|
208
208
|
"""
|
|
209
209
|
|
|
210
|
+
from sempy_labs._helper_functions import is_default_semantic_model
|
|
211
|
+
|
|
210
212
|
# https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/update-dataset-in-group
|
|
211
213
|
|
|
212
214
|
(workspace, workspace_id) = resolve_workspace_name_and_id(workspace)
|
|
213
215
|
dataset_id = resolve_dataset_id(dataset, workspace)
|
|
214
216
|
|
|
217
|
+
if is_default_semantic_model(dataset=dataset, workspace=workspace):
|
|
218
|
+
raise ValueError(
|
|
219
|
+
f"{icons.red_dot} The 'set_qso' function does not run against default semantic models."
|
|
220
|
+
)
|
|
221
|
+
|
|
215
222
|
if max_read_only_replicas == 0:
|
|
216
223
|
disable_qso(dataset=dataset, workspace=workspace)
|
|
217
224
|
return
|
|
@@ -223,9 +230,14 @@ def set_qso(
|
|
|
223
230
|
}
|
|
224
231
|
}
|
|
225
232
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
233
|
+
dfL = list_qso_settings(dataset=dataset, workspace=workspace)
|
|
234
|
+
storage_mode = dfL["Storage Mode"].iloc[0]
|
|
235
|
+
|
|
236
|
+
if storage_mode == "Small":
|
|
237
|
+
set_semantic_model_storage_format(
|
|
238
|
+
dataset=dataset, storage_format="Large", workspace=workspace
|
|
239
|
+
)
|
|
240
|
+
|
|
229
241
|
client = fabric.PowerBIRestClient()
|
|
230
242
|
response = client.patch(
|
|
231
243
|
f"/v1.0/myorg/groups/{workspace_id}/datasets/{dataset_id}",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|